convert site to .php from html

Discussion in 'Search Engine Optimization' started by eSpenders.com, Apr 1, 2008.

  1. #1
    Hi
    one of my sites is mostly html and id like to convert/switch it to .php without losing my pr - serp
    what is the best way to go about this?
    will this affect my rankings ?
    if i keep everything the same other than the extension?
    any help thoughts ideas feedback etc
    would be appreciated!
    Thanks






    p.s.if i use the htacess method will it read .html files as .php can i use all php features? will this have any negative effect?
     
    eSpenders.com, Apr 1, 2008 IP
  2. alienated

    alienated Active Member

    Messages:
    144
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    73
    #2
    Redirect 301
     
    alienated, Apr 1, 2008 IP
  3. eSpenders.com

    eSpenders.com Peon

    Messages:
    1,567
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #3
    is that easy to do to multiple pages?

    so should I use this code for each page i want to change??

    .htacess file
    
     redirect 301 /oldfilepath/index.html http://www.mynewurl.com/index.php
    HTML:
    is this my best bet??

    also if alot of the content will be changing will this still be needed?or worth the time
    (less ads more quality content)
    my site has been pr4 for over a year and i haven't added much to the site
    its way over due for a facelift and updates(like most of my sites) it was one of my 1st sites!
    im kinda trying to rebuild the site almost to a full new build still alot of the same info etc but want new format/&/layout and to add lots more features but not lose any of my rankings!its my last sig!
    (i want to do lots more than i am capable of! I know what i want just not how to do it)

    any recommendations
     
    eSpenders.com, Apr 1, 2008 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I wouldn't bother here. I'd just tell Apache to parse .html files as if they were .php files. Problem solved.
     
    Dan Schulz, Apr 1, 2008 IP
  5. eSpenders.com

    eSpenders.com Peon

    Messages:
    1,567
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #5
    is this what you suggest i use

    .htacess file
    addhandler application/x-httpd-php .htm .html
    HTML:
    does this have any negative factors i should worry about??


    THANKS
     
    eSpenders.com, Apr 1, 2008 IP
  6. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'm not an Apache expert, but yeah, that looks about right. And no, it wouldn't have any negative impact. Remember, the search engines only see the HTML and plain text, not the server-side code that goes behind them (if they're there). In other words, what you see when you click on "View Source" is what the search engines see.

    Basically what this does is it treats the .html file (or .htm) like it would a PHP script. If there's any PHP code, it'll parse that code and generate the output. If it sees HTML code or plain text (such as the contents of a <p></p> tag pair), then it gets treated normally (like HTML code or plain text).
     
    Dan Schulz, Apr 1, 2008 IP
  7. eSpenders.com

    eSpenders.com Peon

    Messages:
    1,567
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #7
    nice thanks for your answer I think it answered my next question
    does a php include file have any different effect on seo if it displays the same content as the static content it replaces??
    being I want to use php include to display the sites news and updates on every page so i only have to update one file not every page
     
    eSpenders.com, Apr 1, 2008 IP
  8. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #8
    It'll have no effect because the search engines will only see the content that's produced by it, not the include itself.
     
    Dan Schulz, Apr 1, 2008 IP
  9. FightRice

    FightRice Peon

    Messages:
    1,082
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Won't have any effect, though you may want to consider showing random news and updates rather then the same content on every page.
     
    FightRice, Apr 1, 2008 IP
  10. gabainc

    gabainc Active Member

    Messages:
    624
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #10
    humm i thought php was seo friendly... so all my links in my includes are not counted? Sorry for jumping in
     
    gabainc, Apr 1, 2008 IP
  11. eSpenders.com

    eSpenders.com Peon

    Messages:
    1,567
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #11
    yea your rite you think it would be ok if was like 5 different random small news feed php includes to rotate on 50 pages or more? or is that still to much duplicate content?

    tho this is still good news being i would like to add all my ad codes headders footers etc into include files so they are easier to manage
    Thanks for all the help so far
     
    eSpenders.com, Apr 1, 2008 IP
  12. eSpenders.com

    eSpenders.com Peon

    Messages:
    1,567
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #12
    no i think if you include a php file that has
    just this in it
    <a href="http://imgups.com">imgUPS.com here</a>
    it is seo frendily being all that will display to spiders is
    <a href="http://imgups.com">imgUPS.com here</a>
    so if you see the link in the source your link is seen by google etc
    dont quote me on this being i know very lil about seo etc
    PeAce
     
    eSpenders.com, Apr 1, 2008 IP
  13. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #13
    It is. Search engines don't care what server-side programming language you use, as long as they can see the HTML and text that they generate.

    You can have them be the same on every page, just don't go over-board and have them become a significant portion of each page's content. But bear in mind that the people using the site may get annoyed at seeing the same thing page after page after page after a while.

    Right. The search engines see what the browsers see. Since PHP (and other server-side programming languages) are parsed by the server before sending the output the the browsers, the browsers never seet he PHP (or .NET or ASP or JSP or whatever) code - just the HTML and text they generate.
     
    Dan Schulz, Apr 1, 2008 IP
    eSpenders.com likes this.
  14. eSpenders.com

    eSpenders.com Peon

    Messages:
    1,567
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #14
    yes i dont want to get to redundant with the news just need more news to post i usually only post info approved by the related artist no other way! witch takes time to acquire being i work 3-4 physical jobs and try to manage 70 domains about 30 sites and remodel my house and take care of my 2 big dogs! 4 jobs no money no time! fun fun !:(
    tho im sure i could add some other quality relative unique news!:D

    Thanks For all your help Dan your the man! are you stalking me haha just joking Thanks for your help in both threads thought i was just seeing double!:D
    PeAcE uNo
     
    eSpenders.com, Apr 1, 2008 IP
  15. dpking

    dpking Peon

    Messages:
    1,021
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #15
    SEO Redirect your old pages to new pages it will help !!!
     
    dpking, Apr 1, 2008 IP
  16. Farhan5

    Farhan5 Peon

    Messages:
    189
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #16
    it is a dificult thing...u have to recreate the pages
     
    Farhan5, Apr 1, 2008 IP
  17. devat

    devat Peon

    Messages:
    670
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #17
    devat, Apr 2, 2008 IP
  18. eSpenders.com

    eSpenders.com Peon

    Messages:
    1,567
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #18
    ay dan or whom ever knows
    do search engines see the name of the file you php file include?
    example!
    <?php include("good-keyword.php"); ?>

    vs
    <?php include("1t7761235187pornfreedownloadviragaxxxfreefreeNO-KEYWORD.php"); ?>

    can the name of the included file effect anything?
     
    eSpenders.com, Apr 2, 2008 IP
  19. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #19
    eSpenders.com, they'll read whatever is inside the included files since THAT is what gets sent to the browser. The names of the included files won't matter one bit since the browser (or search engine) will never see them.
     
    Dan Schulz, Apr 2, 2008 IP
  20. Alex-Z

    Alex-Z Peon

    Messages:
    337
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #20
    The only difference between your .html files without php and your .html files with php is that the latter have a few php tags in them, that's all.
    So by definition, an html document is a special case of php document, with no php tags in it.
     
    Alex-Z, Apr 2, 2008 IP