I have a website with static (html) pages that ranks well in the SERPS. I would like to add SSIs to the pages, which (at my hosting provider) requires that I change the pages to shtml. What is the best way to do this and still maintain my good ranking in the search engines? Thank you.
Why rename the files? Just add the below code to your .htaccess file to make SSI work in *.html files, this must be done in every .htaccess file in each directory you wish to do this in. AddHandler server-parsed .html Options +Includes Code (markup): I think you need a web hosting provider that has some better technical knowledge of their web servers
If you must change the extension, you can do 301 redirects in your htaccess like so: This will redirect any .html file to .shtml. May be conflicting if you have .html files with your .shtml files. htaccess is only available on apache servers. You can however get your hosting provider to change file mime types so that .html files will run as asp, but I would not recommend doing so. Many times it will put a strain on the server.
i use godaddy linux hosting and that what they told me that i needed to do in order to use SSI. those people don;t know much i guess. i did some research and uploaded an htaccess file with the proper code and used include tag on the htm pages and it works like charm. here's what you need to do if you are running your hosting on linux server. make an htaccess file with the following code: then use this include tag on your webpage i use .htm but you can change that to html if you want