enable mod_rewrite on apache-winXP

New to mod_rewrite? This is a good place to start.

enable mod_rewrite on apache-winXP

Postby Tomba » Tue Oct 07, 2003 12:51 pm

hello people,

I am trying to test locally everything I do to my website before uploading, and I should be able to use mod_rewrite.
How can I enable this in apache on my winXP ?

thanks!!
Tomba
 

Enable mod_rewrite

Postby Wh1t3w0lf » Tue Oct 14, 2003 5:17 pm

You must open Apache Install Dir/conf/httpd.conf and fine a line that says :
Code: Select all
#LoadModule rewrite_module modules/mod_rewrite.so

Just remove the '#' from this line so that it is "uncommented".

You must also enable .htaccess to have rewrite directives.
Find the <Directory "your http docs dir"> </Directory> block and inside it make sure you have this:
Code: Select all
AllowOverride All
so that all directives are accepted inside the .htaccess files.

Save, exit file and restart Apache for the changes to take effect.
Wh1t3w0lf
 
Posts: 1
Joined: Tue Oct 14, 2003 5:08 pm
Location: Athens, Greece


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 45 guests

cron