Enabling mod_rewrite in Apache 2

Posted on August 24, 2008
Filed Under Apache, PHP, Windows |

Enable the mod_rewrite module by uncommenting it from the httpd.conf file.

1
LoadModule rewrite_module modules/mod_rewrite.so

Enable .htaccess configurations by setting AllowOverride to All for the DocumentRoot directory.

1
2
3
4
5
6
7
8
9
10
11
12
<Directory "C:/www">
    Options Indexes FollowSymLinks
 
    # AllowOverride controls what directives may be placed 
    # in .htaccess files. It can be "All", "None", or any 
    # combination of the keywords: 
    # Options FileInfo AuthConfig Limit
    AllowOverride All
 
    Order allow,deny
    Allow from all
</Directory>

Comments

Leave a Reply




  • About

    This is an area on your website where you can add text. This will serve as an informative location on your website, where you can talk about your site.