Really Simple RewriteRule Not Working

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 27 Apr 2012, 13:53

Really Simple RewriteRule Not Working

27 Apr 2012, 14:08

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.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Really Simple RewriteRule Not Working

30 Apr 2012, 03:56

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]

User avatar
Posts: 2
Joined: 27 Apr 2012, 13:53

Re: Really Simple RewriteRule Not Working

30 Apr 2012, 09:52

Hi Anton,
thanks very much, this is now working perfectly, I need to read up on the syntax for ISAPI_Rewrite I think. :oops:

Thanks again!

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 6 guests