Submit Your Article Forum Rules

Results 1 to 5 of 5

Thread: .HTACCESS AddType application/x-httpd-php .htm .html Any Issues with SEO

Hybrid View

  1. #1
    Junior Member Capere Spiritum's Avatar
    Join Date
    Dec 2011
    Location
    North East - United Kingdom
    Posts
    23

    .HTACCESS AddType application/x-httpd-php .htm .html Any Issues with SEO

    Hi All,

    I have a newly created website in php using CMSMS. I have read about using an .HTACCESS file with 'AddType application/x-httpd-php .htm .html'

    The above will 'display' pages as html files extension rather than php.

    I don't know if this is a good idea or not.

    Does anyone know of any issues (good or bad) regarding SEO? Or for that matter issues with CMSMS and the above .htaccess file?

    Happy New Year to One and All...
    Content Managed Website Design | Graphic Design | Researching SEO Friendly
    Stationery Design & Print | Business Cards | Letterheads | Leaflets | Flyers | Posters etc
    Capere Spiritum - Catch the Spirit

  2. #2
    Moderator SteveGerencser's Avatar
    Join Date
    Jan 2005
    Location
    Small town Tennessee
    Posts
    2,144
    There is no valid SEO reason to add server load to your site this way.. The only time we do this is when we are working with a .html site and want to add php functionality without changing URLs to .php..
    Last edited by SteveGerencser; 01-01-2012 at 02:51 PM.
    Dad always said, if you are good at something, make sure they pay you for it.
    Coming soon : SEO Pros Live Hangout on Air
    Internet Marketing | Animal Charms Animal Jewelry

  3. The following user agrees with SteveGerencser:
  4. #3
    Junior Member Capere Spiritum's Avatar
    Join Date
    Dec 2011
    Location
    North East - United Kingdom
    Posts
    23
    Thanks Steve, much appresciated...
    Content Managed Website Design | Graphic Design | Researching SEO Friendly
    Stationery Design & Print | Business Cards | Letterheads | Leaflets | Flyers | Posters etc
    Capere Spiritum - Catch the Spirit

  5. #4
    Member
    Join Date
    Mar 2006
    Posts
    30
    I use this for some html pages to display as .shtml, so 'virtual includes' works. But remember if you use this tecnique for lot of pages, it uses significant of resources.

    If you are going to expand your web site, it might be better you use real .html extention from now on.

    Not to scare you, just my thoughts...

    .

  6. #5
    Administrator weegillis's Avatar
    Join Date
    Oct 2003
    Posts
    5,826
    Quote Originally Posted by SteveGerencser View Post
    ... The only time we do this is when we are working with a .html site and want to add php functionality without changing URLs to .php..
    And pretty much a necessity during a transition from URL's containing /index.html (URI absolute in the SERP's) to / (URI default of folder undefined in the SERP's). For a time I've foisted PHP on .html pages just for immediacy. Eventually, when all the internal "/index.html" hook references are long gone, one can switch to the appropriate extension, such as .php, .shtml, etc. and with proper redirects in place, reduce remaining .html pages to peripheral roles.

    As has been mentioned, the server load makes it an imperative to not sit around too long with the added type configured for pages that search engines favor or main pages on a site. You'll want the best performances for the first time referred visitor. They will wait a little longer for internal browsing.

    Problem I find is that once the directive is in place, I forget about it, and put off the short and long term adjustments for an extended period. Working alone, I find it can take ages to actually transform a site with any thoroughness. Meanwhile its pages while PHP enabled are taking longer to download than their .html stand-alones. And now that the cat is out of the bag, so to speak, I can't very well put it back without users noticing right away the lack of uniqueness and timeliness that pre-processing affords.
    Last edited by weegillis; 01-08-2012 at 11:54 PM. Reason: that/the

Posting Permissions

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