Simple rewriterule not workin

Hi,

I have the following simple rewriterule which isn’t working. Anyone can point me in the right direction?


RewriteEngine on
RewriteRule ^news$ news.php

Thanks.

Zaggs,

That code is okay provided you are on an Apache 2.x server and there is no other conflicting code.

Be sure to test, though, by adding flags to your code - I recommend [R=301,L] where the R=301 will tell the server to display the redirection and L tells Apache to go do it. If it works, then you can remove the R=301 (and the comma separator).

Regards,

DK