Title: WordPress Posts Returning 404 Error
Last modified: August 21, 2016

---

# WordPress Posts Returning 404 Error

 *  Resolved [Exme](https://wordpress.org/support/users/exme/)
 * (@exme)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/wordpress-posts-returning-404-error-1/)
 * [tor-fashion.com](http://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 [http://tor-fashion.com/2014/01/07/sample-post/](http://tor-fashion.com/2014/01/07/sample-post/)
   to [http://tor-fashion.com/sample-post/](http://tor-fashion.com/sample-post/)
   about a week ago.
 * I found [this WordPress support forums topic](http://wordpress.org/support/topic/missing-images-broken-images-direct-links-to-files-broken)
   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](http://wordpress.org/support/topic/all-pages-but-the-homepage-throw-404-errors?replies=18)
   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.

## Tags

 * [404 errors](https://wordpress.org/support/topic-tag/404-errors/)
 * [permalinks](https://wordpress.org/support/topic-tag/permalinks/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Exme](https://wordpress.org/support/users/exme/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/wordpress-posts-returning-404-error-1/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
