WordPress Posts Returning 404 Error
-
tor-fashion.com
Multisite installation
Hosted by GoDaddy Linux.Background information: Over the last few days, I’ve noticed hundreds, if not thousands, of the older images on the site, including many Featured Images, are no longer visible on my site. There are almost 38,000 images in the Media Library. I changed over to a Multisite installation about two weeks ago and I changed the Permalinks structure from https://tor-fashion.com/2014/01/07/sample-post/ to https://tor-fashion.com/sample-post/ about a week ago.
I found this WordPress support forums topic and attempted to fix my problem. I saw there were two .htaccess files, so I changed the file name of the smaller version to htaccess.txt. I then checked my site and immediately saw a 404 error for every post except the front page.
I tried to change the file name back, but it mysteriously had changed to %2ehtaccess.txt and I cannot change the name, delete or download the file.
Looking for a solution to the 404 problem, I tried this solution found in the WordPress Support Forums. I am able to change the Permalinks to Default and I can access posts, but not pages. Once I change them back (or try another format), I get the 404 errors again on the posts. I have no problems with changing the permissions on the file.
I tried deleting the second .htaccess file, but that didn’t solve the problem. I then uploaded a new .htaccess file with this code:
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L]
That didn’t make a difference. I’m still seeing the 404 errors.
I’d really appreciate it if anyone had any ideas to help out. Thanks.
- The topic ‘WordPress Posts Returning 404 Error’ is closed to new replies.