Pages not showing up (error 404 instead)
-
My pages are present inside the admin dashboard, but on the front-end error 404 shows up. I’m working on win7/xampp, using my custom theme, I have only 2 plugins (Pods and Classic Editor). Tried deactivating them one by one, while experimenting with settings->permalink section, clearing cache after every attempt to ensure that is not the problem. Deleted htaccess, WP creates new one and it looks ok, pasting the code here:
# BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
My WP is in my main directory, so htaccess should be correct. I then went to check the httpd.conf of Apache to see if this is commented:
LoadModule rewrite_module modules/mod_rewrite.so
It was not commented so it should be working. Then I went to change this piece of code in the httpd.conf:
# # Deny access to the entirety of your server's filesystem. You must # explicitly permit access to web content directories in other # <Directory> blocks below. # <Directory /> AllowOverride none Require all denied </Directory>
I changed it to AllowOverride Yes and Require all granted – still did not work. Changed back and went to this piece of code below it:
DocumentRoot "E:/Server/htdocs" <Directory "E:/Server/htdocs"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted </Directory>
I have limited knowledge and do not understand how I should go about fixing my issue. Everything else is working perfectly. When I update my permalinks, they lead to their correct URLs, but the pages don’t open. I read a lot of support threads before opening this one and nothing helped. Some guy said he fixed his issue by adding “options +FollowSymLinks” to his htaccess. I tried to add this to in the final line and it still didn’t work. Starting to lose my mind, any help appreciated.
- The topic ‘Pages not showing up (error 404 instead)’ is closed to new replies.