Forum Moderators: phranque
My problem is that many of these html pages are linked to by our customers. I don't want to have to break the links by deleting the pages and have our customers drill back through our site to find the new page. I thought that I should be able to create a ReWrite rule that would do that for me. I came up with:
RewriteEngine on
RewriteRule ^(.*)/default.html$ $1/default.shtml
ErrorDocument 404 [mysite.com...]
But when I upload it I get a "You don't have permission to access /mypage.shtml on this server." message when I go to www.mysite.com/mypage.shtml. What am I doing wrong?
Welcome to WebmasterWorld!
Easy stuff first...
This is incorrect:
ErrorDocument 404 http://www.mysite.com/404.html
ErrorDocument 404 /404.html
RewriteEngine on
RewriteRule ^(.+/)?default\.html$ $1default.shtml [L]
Jim
However, none of my cgi-bin programs work when the .htaccess file is active. I get the same "Forbidden" message as before.
I feel I'm closer, but I just don't see why the scripts wouldn't work. Their path is different than the other pages.