Enabling Mod rewrite...

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Dave2000
Forum Contributor
Posts: 126
Joined: Wed Jun 21, 2006 1:48 pm

Enabling Mod rewrite...

Post 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 8O and none seem to work :x

Thanks in advance.

Shears
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Hi Shears. What have you tried?
Dave2000
Forum Contributor
Posts: 126
Joined: Wed Jun 21, 2006 1:48 pm

Post 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...
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

After you enabled it, did you create a .htaccess file with rewrite rules in it?
Dave2000
Forum Contributor
Posts: 126
Joined: Wed Jun 21, 2006 1:48 pm

Post 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
Post Reply