Page 1 of 1
Enabling Mod rewrite...
Posted: Fri Jul 20, 2007 4:39 pm
by Dave2000
How to I enable mod rewrite? I am using Apache 2.0.59. I have been googling this all day... Almost every method seems different

and none seem to work
Thanks in advance.
Shears
Posted: Fri Jul 20, 2007 5:02 pm
by Benjamin
Hi Shears. What have you tried?
Posted: Fri Jul 20, 2007 6:24 pm
by Dave2000
Hi,
I uncommented LoadModule rewrite_module modules/mod_rewrite.so
Lots of sites (though not all) say i need to also uncomment AddModule mod_rewrite.c
This line doesn't exist in my httpd.conf file. I get an error on restarting server if i try adding the line.
Some sites (again not all) say I need to change AllowOverride All to AllowOverride None.
AllowOverride occurs on five different lines. I tried each one individually and them altogether.
I've restarted server the server what seems like 200 times.
Shears
PS. I cant surprisingly cant find anything about specifically enabling mod rewrite on the apache website...
Posted: Sat Jul 21, 2007 12:00 am
by Benjamin
After you enabled it, did you create a .htaccess file with rewrite rules in it?
Posted: Sat Jul 21, 2007 5:00 am
by Dave2000
Yes. A .htaccess I use on my production server which works fine on there.
What steps would you recommend I carry out, starting from the beginning, to enable mod rewrite?
Thanks
Shears