:: Enable mod rewrite on Apache

:: What is Mod_rewrite
Mod_rewrite provides a powerful way to do URL manipulations and made more user friendly, by configuring rewrite rules, rather than modifying the webserver software.
 
:: How to enable mod_rewrite on apache
+ configure httpd.conf
Just setup / configure AllowOveride on your httpd.conf or vhost configuration like:

1
AllowOveride All

so configure httpd.conf / vhost configuration like this:

1
vi httpd.conf

Add or setting vhost some like this:

1
2
3
4
5
6
7
8
9
10
11
<VirtualHost *:80>
ServerName blackonsole.org
ServerAlias www.blackonsole.org
DocumentRoot /var/www/blackonsole
<Directory /var/www/blackonsole>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

+ restarting apache

1
apachectl restart

 
+ Google
+ WebTutorial

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Switch to our mobile site