404 mod_rewrite issue SOLVED Apache2 DigitalOcean

Post Reply
Chase
Jr. Bludit
Posts: 2
Joined: Wed Feb 17, 2016 9:35 pm

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>
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Thank you, Chase, for the addition!
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply