Really Simple RewriteRule Not Working
3 posts
• Page 1 of 1
Really Simple RewriteRule Not Working
Hi,
I'm trying to perform 301 redirects on a website on our server, to redirect search engine links (to pages that do not exist anymore), to the new pages that have replaced them.
I have ISAPI_Rewrite 3.1.0.57 installed on our Windows 2003 server running IIS 6. We already have ISAPI_Rewrite running on a few sites on our server and they are working fine. Unfortunately the person who set these up is no longer with us.
I have written the following rules in the .htaccess file via the ISAPI_Rewrite tab in IIS under the properties for this particular website:
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.57
RewriteEngine on
RewriteRule /aboutks.html http://www.carshipping.co.uk/about-karman-shipping.html [R=301]
However this doesn't work!?! Have I missed something? I can't see that it's a problem with the installation of ISAPI_Rewrite as it's working on the other sites? I have noticed however that ISAPI_Rewrite doesn't apear in the ISAPI Filters tab in the "Web Sites Properties" or any of the individual web site properties where it is working? But as they ARE working I'm not sure that this is the issue?
I'd be grateful for any help, thanks. Martin.
I'm trying to perform 301 redirects on a website on our server, to redirect search engine links (to pages that do not exist anymore), to the new pages that have replaced them.
I have ISAPI_Rewrite 3.1.0.57 installed on our Windows 2003 server running IIS 6. We already have ISAPI_Rewrite running on a few sites on our server and they are working fine. Unfortunately the person who set these up is no longer with us.
I have written the following rules in the .htaccess file via the ISAPI_Rewrite tab in IIS under the properties for this particular website:
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.57
RewriteEngine on
RewriteRule /aboutks.html http://www.carshipping.co.uk/about-karman-shipping.html [R=301]
However this doesn't work!?! Have I missed something? I can't see that it's a problem with the installation of ISAPI_Rewrite as it's working on the other sites? I have noticed however that ISAPI_Rewrite doesn't apear in the ISAPI Filters tab in the "Web Sites Properties" or any of the individual web site properties where it is working? But as they ARE working I'm not sure that this is the issue?
I'd be grateful for any help, thanks. Martin.
Re: Really Simple RewriteRule Not Working
Hello, Martin
First, I advise you to update to the latest build of ISAPI_Rewrite (although I guess that's not the problem).
And try to have the following .htaccess for the site in question:
RewriteEngine on
RewriteBase /
RewriteRule ^aboutks\.html$ http://www.carshipping.co.uk/about-karman-shipping.html [NC,R=301,L]
First, I advise you to update to the latest build of ISAPI_Rewrite (although I guess that's not the problem).
And try to have the following .htaccess for the site in question:
RewriteEngine on
RewriteBase /
RewriteRule ^aboutks\.html$ http://www.carshipping.co.uk/about-karman-shipping.html [NC,R=301,L]
Re: Really Simple RewriteRule Not Working
Hi Anton,
thanks very much, this is now working perfectly, I need to read up on the syntax for ISAPI_Rewrite I think.
Thanks again!
thanks very much, this is now working perfectly, I need to read up on the syntax for ISAPI_Rewrite I think.
Thanks again!
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests