Friday, 27 May 2016

Enable mod_rewrite on Apache EC2 Linux Server


Normally i have face that type of problem in cakephp website are blank just set mod_rewrite.no image and css are working.

If mod_rewite was enabled then something else is wrong. Check your etc/httpd/conf/httpd.conf file. It should have the following in it:
AllowOverride All
Basically, you'll be adding All insted of None to AllowOverride, you do not want to edit the main directory configuration, you want to edit the one that looks like this:
<Directory "/var/www/html">
Not:
<Directory />
Then restart Apache with:
sudo service httpd restart
from the command line

No comments:

Post a Comment