Archive for the ‘linux’ tag
Hey, Apache! Do you mod-rewrite?
The quickest way to check if apache’s module mod_rewrite is running is by running this command
sudo apache2ctl -M 2>&1| grep -i rewrite
Now, if you want to enable mod_rewrite, run the following command:
sudo a2enmod rewrite
And finally, restart apache server:
sudo apache2ctl restart
ps. Do not forget to set up correct value for the AllowOverride apache directive to enable correct .htaccess behaviour for your code.