Forum Moderators: phranque

Message Too Old, No Replies

.htaccess not working

Mod Rewrite

         

StanTheMan

8:54 pm on Sep 8, 2004 (gmt 0)

10+ Year Member



I have currently set up my server and everything is working perfectly but.....

.htaccess is not working. I am basically using the same script as on the last server which worked

Code:

RewriteEngine On
RewriteRule ^(.*)news\.htm news.php?id=$1 [l]
Works like a dream on the old server yet, once I have transfer it over the new server I get a 404 error saying it can't find news.php, yet its available and if I manually enter the figures

Code:

news.php?id=2
The news story is show. I am guessing that the httpd.conf does not like the .htaccess file as I can even get the .htaccess to do a simple redirect!

You advice would be appreciated

jdMorgan

12:54 am on Sep 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This recent thread [webmasterworld.com] may help.

Jim

StanTheMan

11:27 am on Sep 9, 2004 (gmt 0)

10+ Year Member



Thanks Jim, thats helped me fix he problem great!