• bilslandlewis

    (@bilslandlewis)


    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

    (@timvodien)

    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

    (@bilslandlewis)

    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.