Results 1 to 9 of 9
  1. #1
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    2,341
    Question:
    If I change my file extensions from .html to .shtml, will people still come to the same file if they follow an old link? i.e. if they type www.mydomain.com/mypage.html into web browser, will the browser find www.mydomain.com/mypage.shtml file automatically? It seems to work on my machine, but unsure if it is some setting in my browser.

    Andy Williams

    Keyword DARTs - New search engine optimization software
    http://www.affiliate-masters.co.uk/k...timization.htm

  2. #2
    Action Jackson - King of the World
    Join Date
    January 18th, 2005
    Posts
    2,201
    I know that if I change my file name to shtml that I can't load the page as the same name with the extension html any longer. I may be wrong but I think that mst people will get an error if they try to reach your html page

    Jack Mitchell
    http://jacksretail.com

  3. #3
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    1,658
    I hope it's not a big site, Andy. It's time to set up redirects for every page you change.

    -----------------------------

    Hell wasn't big enough so I had to come back.

  4. #4
    ABW Ambassador Doc Sawyer's Avatar
    Join Date
    January 18th, 2005
    Location
    Southern California Desert
    Posts
    567
    page.html and page.shtml are two different files.

    no auto re-direct!

    Either redirect page.html to page.shtml or re wite the links pointing to those links.

    And, redirects will probably kill your SEO for those pages...

    So, the best bet is a complete re-write so the shtmls stand as actual pages.

    JMO

    Doc

    "Half this game is ninety percent mental." -- Phillies Manager, Danny Ozark

  5. #5
    Defender of Truth, Justice and the Affiliate Way
    Join Date
    January 18th, 2005
    Location
    The Swamp
    Posts
    7,503
    Andy,

    Best bet is to use an .htaccess to tell your servers to parse html pages. Then you can use the coding that is requiring you to make the pages .shtml, but you can keep your .html pages extensions and no worries with the SE's. Just did that on one of my sites that's been up for ages that I wanted to use SSI. Plus a lot easier than renaming all those pages extensions anyhow.

    Keep Your Hands Off My Cookies

  6. #6
    Member
    Join Date
    January 18th, 2005
    Posts
    91
    Some servers will allow you to use the XbitHack on command in your .htaccess file, that will allow SSI with .html extensions

    If you have to rename your files, try a 301 re-direct from your .htaccess or a mod rewrite to send visitors to the new pages

  7. #7
    ABW Ambassador Mike O's Avatar
    Join Date
    January 18th, 2005
    Location
    Los Angeles area
    Posts
    843
    My site is hosted on PowWeb, and I just added this line to my .htaccess file to make it parst .html files as if they were .shtml files:

    AddHandler server-parsed .html

    The syntax for your hosting company may be different, I'd check their "control panel" or options page or FAQ to see what you can find out. PowWeb's FAQ is where I learned how to do that with them.

    -- Mike

  8. #8
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    2,341
    Thanks People. Guess I'll try the .htacess method first.

    Andy Williams

    Keyword DARTs - New search engine optimization software
    http://www.affiliate-masters.co.uk/k...timization.htm

  9. #9
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    2,341
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by MikeO:

    AddHandler server-parsed .html

    <HR></BLOCKQUOTE>

    Worked for me. Thanks.

    Andy Williams

    Keyword DARTs - New search engine optimization software
    http://www.affiliate-masters.co.uk/k...timization.htm

  10. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. PHP on .HTML - .SHTML Pages
    By AddHandler in forum Programming / Datafeeds / Tools
    Replies: 11
    Last Post: April 16th, 2005, 08:52 PM
  2. Changing old pages from .htm to .shtml
    By SSanf in forum Midnight Cafe'
    Replies: 10
    Last Post: March 12th, 2004, 10:32 PM
  3. How to make .htm files behave like .shtml
    By cowcool in forum Programming / Datafeeds / Tools
    Replies: 8
    Last Post: May 7th, 2003, 08:18 PM
  4. changing .shtml extensions
    By SpaceBandit in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: January 9th, 2002, 02:21 PM

Posting Permissions

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