Apache and mod_rewrite (and .htaccess) in Ubuntu


To enable mod_rewrite in Ubuntu, you just need to write this command in terminal

    sudo a2enmod rewrite

Restart your your apache.

    sudo service apache2 restart


After enabling mod_rewrite you can write .htaccess file for your web application.

Post a Comment

Popular posts from this blog

CakeAdminLTE is based on AdminLTE Theme for CakePHP 2.4+

CakePHP: COUNT data and GROUP BY date

CakePHP: Calling function from other controller