Enabling mod_rewrite module in Apache HTTP Server
Posted on August 27, 2008, under PHP,
Bookmark it
Hello,
In this short tutorial we will learn how to enable the mod_rewrite module in Apache Server.
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:
LoadModule rewrite_module modules/mod_rewrite.so
Look for #AddModule mod_rewrite.c and uncomment it as well.
AddModule mod_rewrite.c
In the same file search for:
<Directory /> Options FollowSymLinks AllowOverride None </Directory>
and replace it with:
<Directory /> Options FollowSymLinks AllowOverride All </Directory>
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!
![]() |
|
- August 27, 2008
- article by Gabriel C.
- 3 comments
Related Posts
-
Making Friendly URLsat August 29, 2008 with 2 comments
-
PHP: Calculate the Size, Number of Files & Folders of a Directoryat September 24, 2008 with 3 comments
-
Downloadify: Save Files using Flash & JS without Server Interactionat December 27, 2009
-
Show random image(s) from a directoryat September 21, 2008 with 6 comments
-
How to recursively read a directory with all its contentat September 4, 2008



3 Replies to "Enabling mod_rewrite module in Apache HTTP Server"
August 29, 2008 at 1:08 PM
[...] you how to make SEO Friendly URLs in Apache Server. First of all you must check if you have the mod_rewrite module [...]
November 30, 2008 at 10:19 PM
Hello LoadModule rewrite_module modules/mod_rewrite.so
is not there i open httpd.config and i can’t finde that lines i run
a test.php to see if PHP Version 5.2.5 they have on,
Loaded Modules :
core mod_access mod_auth mod_include mod_log_config mod_logio mod_env mod_expires mod_headers mod_setenvif mod_proxy proxy_connect proxy_ftp proxy_http mod_ssl prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_info mod_suexec mod_cgi mod_negotiation mod_dir mod_imap mod_actions mod_userdir mod_alias mod_rewrite mod_so mod_auth_passthrough mod_bwlimited mod_fpcgid mod_php5
and is there but still i cant make this works any help thanks Tom
December 4, 2008 at 5:55 PM
Are you sure that you followed all the steps? It should work. What exactly is your problem? Did you create a .htaccess file containing the right data in it?