I want to redirect calls to my /index.html to /index.shtml.
My (old domain name) site on my old host is #1 on Google for a particular search. I don't have access to the old host anymore, but the site is still up and I modified it when I still could with a note, a link to my current domain name, and a 3 second refresh. Unfortunately, the URL I used in the refresh included "index.html" explicitly.
My root page is now index.shtml.
Eventually the search engines will catch up. In the meantime, I tried a server-side redirect in the .htaccess, but get an Internal Server Error.
*** Never mind *** Fixed it -- I'll post anyway for others:
The redirect syntax in .htaccess is 'Redirect [status] url-path url'
I tried: Redirect /index.html /index.shtml
The server barfed. <g> In the middle of writing this post, I checked the server error log (didn't want to embarrass myself by skipping the obvious). There I found a message along the lines of "redirect to invalid URL." So I tried: Redirect /index.html
http://<domain>/index.shtml
That works. So now I have:
Redirect 301 /index.html
http://<domain>/index.shtml
to indicate a permanent redirection.
Nothing like trying to ask a coherent question to help you answer the question yourself!
dv