Why do I get 404 on LAMP Permalinks
-
I have been working on a website on an ubuntu server (amazone) and I get 404s entering pages.
I’ll give all the information I can regarding the problem.
On WordPress:
https://i.stack.imgur.com/NCpAW.png
https://i.stack.imgur.com/l9FdL.pngRefresh page:
https://i.stack.imgur.com/X5Utk.pngI followed this tutorial:
And nothing helped.
I found this post https://www.ads-software.com/support/topic/permalink-does-not-work-apart-from-default?replies=12 – so I entered I entered the file: /etc/apache2/sites-enabled/000-default.conf
and didn’t find AllowOverride None to change to AllowOverride All So I added it myself here: https://i.stack.imgur.com/99Y7j.png
Restarted apache, and I got an error. I refreshed the website, and found out it’s not working..
Undo AllowOverride All from 000-default.conf
What is the solution for this? I have never worked with Linux servers, so I’ll need a very clear and well explained answer please.
BTW, This is what WP generates in my .htaccess file:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
- The topic ‘Why do I get 404 on LAMP Permalinks’ is closed to new replies.