Web Designing, Web Development, Website Design, Website Development, SEO

0091 98233 72069

COGS: CUSTOMISED, OPTIMISED, GENERALISED WEB DESIGN & WEB DEVELOPMENT SOLUTIONS

Linux apache – how to enable mod_rewrite

To install
mod_rewrite, run command as below:

sudo a2enmod rewrite

then run command

sudo ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/

then Change the Allowoverride value to all for the document root directory
For example, may be to this part of the configuration:

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>

Finally, just restart the apache

sudo /etc/init.d/apache2 restart