404 mod_rewrite issue SOLVED Apache2 DigitalOcean
Posted: Fri Dec 23, 2016 1:06 am
Immediately after install when I tried to access my admin I got 404 error. The only page that worked was the index (I also moved my existing nibble blog to server with same issue). It took me about a day to figure this out and I thought I may save someone some time...
For the record, I'm using Digitalocean / Ubuntu 16.04 with LAMP install.
My mod_rewrite was on but not working
The fix ended up being in the apache2.conf file (and there is next to zero documentation to solve this problem online).
Go to /etc/apache2/apache2.conf file
Find code:
Change to:
For the record, I'm using Digitalocean / Ubuntu 16.04 with LAMP install.
My mod_rewrite was on but not working
The fix ended up being in the apache2.conf file (and there is next to zero documentation to solve this problem online).
Go to /etc/apache2/apache2.conf file
Find code:
Code: Select all
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>Code: Select all
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>