Page 1 of 1

404 mod_rewrite issue SOLVED Apache2 DigitalOcean

Posted: Fri Dec 23, 2016 1:06 am
by Chase
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:

Code: Select all

<Directory /var/www/>
	Options Indexes FollowSymLinks
	AllowOverride None
	Require all granted
</Directory>
Change to:

Code: Select all

<Directory /var/www/>
	Options Indexes FollowSymLinks
	AllowOverride All
	Require all granted
</Directory>

Re: 404 mod_rewrite issue SOLVED Apache2 DigitalOcean

Posted: Fri Dec 23, 2016 11:07 am
by Edi
Thank you, Chase, for the addition!