404 Page Not Found after publish
-
I’m running WP 4.4.1 on a site we’re developing.
I have the same problem that many others have had. Once I publish a page (or even a post), it becomes not found – AKA 404. I’ve done considerable research on this via Google, so I think I’ve looked at the usual suspected issues.
It seems many have had this issue for over ten years and it’s still not solved.
Here’s what I’ve done:
– deactivated all plugins
– used a standard theme, 2011 or 2016
– tried a different browser and even a different computer
– cleared the cache and cookies on my browser (Chrome)
– looked at the .htaccess file (see below)
– reset permalinks as many have instructed
– examine Apache log filesThe .htaccess file contains:
`# 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 .htaccess file is located at /home/mydomain/public_html/.htaccess (the same directory as the WP install). The owner-group is www-data:www-data with 644 permissions.
The install is running on our own server, running Debian Jessie and Apache/MySQL.
The error I’m getting is:
Not Found
The requested URL /directory/post-name/ was not found on this server.
Apache/2.4.10 (Debian) Server at mydomain.com Port 80I checked the Apache access and error log files and see nothing that indicates the nature of the problem. The log suggests that the post or page was actually seen.
On the permalinks, I first went back to the plain permalinks
https://mydomain.com/?p=123.
Saved that and then I could view all the pages.Then I went back to the post-name permalinks, saved that and reset the slugs on each page. At that point I was not able to view the pages.
At one point I erased Hello World, but I replaced that with another placeholder post, and set up a static front page.
I have a good number of plugins, but I tested the system with all plugins deactivated, so I don’t think that’s an issue. Would it help to delete them as well?
So this is driving me crazy and taking up too much time.
Please, someone, I hope you have a solution. Thank you.
- The topic ‘404 Page Not Found after publish’ is closed to new replies.