Title: Custom post 404 after migration
Last modified: August 31, 2016

---

# Custom post 404 after migration

 *  [bilslandlewis](https://wordpress.org/support/users/bilslandlewis/)
 * (@bilslandlewis)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/custom-post-404-after-migration/)
 * have been working on a staging site, once client signed off I moved everything
   over to live, copied install of wordpress, exported and then imported the DB,
   all working fine except custom posts return a 404 error.
 * Have tried flush rewrites in functions and flushing from permalinks, nothing 
   works still results in a 404 for custom post types

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [tim.vodien](https://wordpress.org/support/users/timvodien/)
 * (@timvodien)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/custom-post-404-after-migration/#post-7149407)
 * This usually happens if your .htaccess file got deleted or something went wrong
   with the rewrite rules. Have you check if you still have your .htaccess file?
   If there isn’t then you can create one.
 *     ```
       # 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
       ```
   
 * Also you can try to fix this through your dashboard permalink settings – Settings
   > Permalinks.
 *  Thread Starter [bilslandlewis](https://wordpress.org/support/users/bilslandlewis/)
 * (@bilslandlewis)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/custom-post-404-after-migration/#post-7149418)
 * Hi Tim
    the htaccess file is as you have above, have tried switching the permalinks
   around to force a rewrite and flush them, setting to any of the permalinks options
   has no effect, the 404’s remain.
 * Checked CHMOD on htaccess and it is writable

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom post 404 after migration’ is closed to new replies.

## Tags

 * [custom posts](https://wordpress.org/support/topic-tag/custom-posts/)
 * [guid](https://wordpress.org/support/topic-tag/guid/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [Import](https://wordpress.org/support/topic-tag/import/)
 * [permalinks](https://wordpress.org/support/topic-tag/permalinks/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [bilslandlewis](https://wordpress.org/support/users/bilslandlewis/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/custom-post-404-after-migration/#post-7149418)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
