Forum Moderators: phranque

Message Too Old, No Replies

changing page file

index changing from .htm to shtml

         

chairwars

5:52 pm on Jun 15, 2003 (gmt 0)

10+ Year Member



I want to put in a script on my index page which will require the file extension changing from .htm to .shtml
Will this cause any immediate problems? (Links to the site, search engines?)

jatar_k

6:06 pm on Jun 15, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Your old page will 404.

You will want to add a 301 redirect permanent to the new page so you dont lose the clicks to the old page. I assume you are adding some SSI, you could also look at handling SSI with the htm extension.

[httpd.apache.org...]

lorax

10:21 pm on Jun 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You could also use htaccess to hand the .shtml version of the page to the browser whenever the .html page is requested.

chairwars

10:02 pm on Jun 18, 2003 (gmt 0)

10+ Year Member



Thanks for the help. I think i'll set up a redirect.

oilman

10:12 pm on Jun 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



if you're just changing the extension so you can parse for ssi you may want to check if you can just add htm to the list of pages to parse for ssi - then you don't have to change anything. It's one line into your htaccess and you don't have to worry about the SEs at all:

AddType text/x-server-parsed-html .htm .html

chairwars

7:58 pm on Jun 19, 2003 (gmt 0)

10+ Year Member



yes i am wanting to change so that i can parse for ssi. I modified the htaccess and it works fine now. Thanks.