Q:

rewrite url module in windows does not redirect

I have used rewrite url module but I am not able to redirect to the target page and
I am getting error as:

The requested URL /old.html was not found on this server.

Here is my code:
<IfModule mod_rewrite>
    RewriteEngine On
    RewriteRule ^old.html$ new.html [R]
</IfModule>

A:

Is AllowOverride set to All in your httpd.conf? Like this:
   AllowOverride All

Also, your .htaccess should inlcude the L modifier for the last rule, and if you really want to redirect permanently, R=301:
RewriteEngine On 
RewriteRule ^old.html$ /new.html [R=301,L] 

