Search

Apache wordpress remove index.php 404 not working .htaccess definitive solution

Apache wordpress remove index.php 404 not working .htaccess definitive solution

Scenario:
You are running Apache, have installed WordPress and are trying to get pretty permalinks working and it keeps returning a 404 page.

You’ve tried everything – a2enmod rewrite, removed the .htaccess file, reset the permalinks, changed them back to the pretty version, restarted Apache – in short everything people tell you.

The problem is still there isn’t it? The internet sucks, nobody knows anything.

Sit back, have a nice drink and we’ll have it fixed in seconds.

Edit the main Apache config file (/etc/apache2/apache2.conf in my case).

Search for:


       Options Indexes FollowSymLinks
       AllowOverride None
       Require all granted

Change it to:


       Options All
       AllowOverride All
       Require all granted

Restart Apache.

Want to thank me? This server has google ads and I receive a nominal amount per click.

Feel free to comment :)

wordpress permalinks
wordpress permalinks

Related posts

Leave a Comment