views:

70

answers:

2

I have the following line in my IsapiRewrite.ini file:

RewriteRule ^/test-url.asp$  http://www.google.co.uk/ [R=301,L]

But it doesn't do anything...

However, this DOES work:

RewriteRule ^/test-url.asp$  /

Is it a case of enabling Redirect or something like that? I would have thought that if the IsapiRewrite4.dll is running, the redirect would work?

Please can someone advise? Much appreciated :)

+1  A: 

Try this (slightly modified to be case insensitive):

RewriteRule ^/test-url.asp$  http\://www\.google\.co\.uk/ [I, R=301,L]
alexs
hi there, tried that and no luck :(It's odd. I can use the same line on a linux server using .htaccess and it works fine.
Tisch
Maybe the rule should be case insensitive. Try with the following:RewriteRule ^/test-url.asp$ http\://www\.google\.co\.uk/ [I,R=301,L]
alexs
+1  A: 

Turns out to be the documentation on the Isapi Readme...

To do redirect, its not "RewriteRule", but instead "RedirectRule"... just tried it by chance. Ended up working. However, the above suggestions do work on .htaccess Linux servers.

Thanks guys.

Tisch