No ONE on EARTH has been able to come up with a solution with my problem! Can you? Background: My website is in a "shared" Windows hosting environment so I don't have access to the IIS "control panel". My website consists of web pages with the .html extension. Problem: I want to use Server Side Includes (SSI). This only works if my files have the .shtml extension. Sooo....It's not as simple as renaming all my files because then I lose everything indexed by Google and other search engines. Soooo. the idea is I duplicate all my files so they have .shtml extension and I put some sort of 301 redirect in my original .html files. This is the problem! No one out there in the webworld can tell me how to do a 301 redirect to my new .shtml pages! Javascript won't do it! I can't use htaccess, asp, php or anything else! Any solutions out there? Thanx in advance! Blair
Dont worry, there is a solution on this, I will come back later with the answer if I can remember it, something to put in .htaccess if I am not wrong. edit: Here, I dont remember if this is all the code, but you should at least get a clue from this: AddHandler server-parsed .html AddHandler server-parsed .htm Options +FollowSymLinks I had something like that in my .htaccess and then ssi worked perfect. I suggest that you put this in your .htaccess and try. Give me BIIIIIIG green if it works, cause I actually dont know anything about .htaccess
htaccess is an Apache tool, won't work on Windows. Solution: Dump your server. Alternative Solution: Meta refresh all .html to .shtml and keep your fingers crossed Google will treat it as a 301.
If you can use SSI extensions as .shtml, there has to be a way to change it on a Windows Server. Just to understand correctly, you already have .html and are considering using .shtml for SSI includes? In a linux world, instead of using .shtml, simply change your .htaccess to allow .html files to also be used as SSI includes. I use SSI includes religiously and they are all .html files. Add this to your .htaccess and give it a shot: AddHandler server-parsed .html This will allow .html's to be used globally as SSI includes. Be sure to report back if this is the solution because I am curious to know if this was in fact your original question and need. Thanks
Unfortunately, "Htaccess" only works in the UNIX world.. It won't help me in Windowsland. I want to switch from .html to .shtml because this is the only way I can get Server Side Includes (SSI) to work.. /Blair
the fastest, cheapest and most simple solution to your problem is to change to the ONE server-OS most smart webmasters are using for a reason ... Linux ! most hosts have BOTH win and Linux in their program - hence a change wihtin same host comapny from win to Lin might be a matter of minutes or hours to accomplish and all your problems are instantly gone for good. else a host change is the other option to solve your current problems and all future problems as well even a dedicated server to have FULL control might be an option of your knowledge allow you to control your own site