Results 1 to 8 of 8

 

Thread: Does removing the .php / .html extension on your pages effect SEO ?

  1. #1
    hobbsy's Avatar
    Registered User

    Status
    Offline
    Join Date
    Aug 2005
    Location
    Manchester
    Posts
    393
    Thanks
    17
    Thanked 12 Times in 11 Posts


    Is it beneficial to Google SEO ranking to remove the .php / .html extensions from webpages?

    eg.
    Code:
    example.com/this-is-my-webpage
    example.com/this-is-my-webpage.html
    example.com/this-is-my-webpage.php
    or does it make absolutely no difference?

    Also does using .html / .php extension make a dynamically-created site look more like static pages to search engines?

  2. #2
    more focused this year...

    Status
    Offline
    Join Date
    Nov 2005
    Location
    India
    Posts
    640
    Thanks
    42
    Thanked 15 Times in 15 Posts
    Well, I haven't really tested this yet though I use .htaccess to change the extension from .php to .html but would be interesting to know if someone have done this sort of split testing and managed to see some positive/negative results.

    Anyone??
    "Falling down is not Defeat....Defeat is when you refuse to get up."

  3. #3
    hobbsy's Avatar
    Registered User

    Status
    Offline
    Join Date
    Aug 2005
    Location
    Manchester
    Posts
    393
    Thanks
    17
    Thanked 12 Times in 11 Posts
    One of the reasons I ask is because Price Tapestry out-of-the-box has .html extensions - but with a bit of .htaccess you can strip this -- but does it make any difference to Google (?)

  4. #4
    paulb567's Avatar
    Registered User

    Status
    Offline
    Join Date
    Dec 2006
    Posts
    169
    Thanks
    7
    Thanked 22 Times in 20 Posts
    Personally I think .html or .htm are best for SEO purposes.

    You could remove them so www.domain.co.uk/name-of-page.html becomes http://www.domain.co.uk/name-of-page but you risk duplicate content / canonical name issues as your pages could be indexed as www.domain.co.uk/name-of-page or www.domain.co.uk/name-of-page/. Keeping the html extension stops this problem.

    I've not tested any of this, just my thoughts.
    Last edited by paulb567; 26-11-09 at 09:27 AM. Reason: a4u being a little too clever for it's own good
    Nothing to see here

  5. #5
    Registered User

    Status
    Offline
    Join Date
    Jan 2008
    Location
    Yorkshire
    Posts
    536
    Thanks
    22
    Thanked 37 Times in 31 Posts
    In my experience it does not make any difference if you are talking about building your site that way from the start, but obv if you already have your page in one format and then change to another, you would then have to redirect from old to new

    Quote Originally Posted by hobbsy View Post
    Also does using .html / .php extension make a dynamically-created site look more like static pages to search engines?
    I think the search engines are way too smart to see a .html or .php extension and automatically assume the site is static

  6. #6
    Negative SEO is fun!

    Status
    Offline
    Join Date
    Sep 2003
    Posts
    1,389
    Thanks
    0
    Thanked 39 Times in 35 Posts
    So long as URLs are stable, SEs generally don't care what or if you have file extensions. Obviously, for certain types of content, n appropriate file extension tells them how to correctly handle it, .swv / .fla for Flash files for instance, .js for inline scripts and so on.

    Where you strip the .html / .php extension, technically you convert the page to being perceived as a subfolder, which is presumably delivering text / HTML content, so that's no problem.

    It's possible you would have to watch how relative URLs behave - by stripping the extension, and converting the content at least nominally to it's own folder, you could cause issues with how ../ and ../../ work, and if that messes up your apparent URL structure, it could cause SES to request pages that don't exist, but that you seem to have linked to.

    Perosnally, I'd use file extensions to make it easier to see what is going on (not least so you can distinguish actual sub-folders from pages named like them) and to avoid any possibilty of nasty link loops etc

  7. #7
    Registered User

    Status
    Offline
    Join Date
    Nov 2009
    Posts
    14
    Thanks
    0
    Thanked 1 Time in 1 Post
    no, google doesn't care.

    Matt Cutts says that for a user it is better to use .html OR .php OR any other valid extension, so that they know when they're on a page and when in a subdirectory.

    More info on the topic:
    YouTube - Should I strip file extensions from my URLs?
    Matt Cutts’s Advice On URLs & Page Names | SEOsean.com Blog

  8. #8
    Registered User

    Status
    Offline
    Join Date
    Jan 2008
    Posts
    450
    Thanks
    2
    Thanked 25 Times in 25 Posts
    ^^ was going to say the same. Google really really does give a lot of advice and help for webmasters - if you want to become an "SEO expert" you don't have to do a lot more than read their help pages and associated blogs .
    a4u peeps Twitter list: PM me and I'll add you!



Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Similar Threads

  1. Removing pages on Google
    By katy111 in forum Affiliate Marketing Lounge
    Replies: 1
    Last Post: 20-03-09, 02:10 PM
  2. Removing pages from a site, whats the best way
    By nicheisthekey in forum Affiliate Marketing Lounge
    Replies: 3
    Last Post: 11-03-09, 12:02 PM
  3. Web pages .html to .php seo problem ?
    By max99 in forum Affiliate Marketing Lounge
    Replies: 5
    Last Post: 13-01-09, 09:48 PM
  4. Getting PHP to run on HTML pages
    By scifind in forum Programming
    Replies: 13
    Last Post: 28-02-07, 11:13 AM
  5. naming pages - yet those show as nos in html
    By DomainsUnlimited in forum Affiliate Marketing Lounge
    Replies: 3
    Last Post: 04-11-05, 11:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2