Step 1
Locate the folder where apache is installed (in localhost is usually in: C:Program FilesApache Software FoundationApache2.2). Find the folder “conf”. You will find in it the file: httpd.conf.
Step 2
Find the line #LoadModule rewrite_module modules/mod_rewrite.so. Uncomment it so it will look like this:
view source
print?
1.LoadModule rewrite_module modules/mod_rewrite.so
Look for #AddModule mod_rewrite.c and uncomment it as well.
view source
print?
1.AddModule mod_rewrite.c
In the same file search for:
view source
print?
1.
2.Options FollowSymLinks
3.AllowOverride None
4.
and replace it with:
view source
print?
1.
2.Options FollowSymLinks
3.AllowOverride All
4.
You may have many other attributes between the ‘Directory’ tags. Make sure that AllowOverride is set to ‘All’.
Save the new httpd.conf and restart Apache.
Good luck!
No comments:
Post a Comment