• Recently upgraded to 2.8.4. I have custom permalinks (/%postname%) and all existing pages work fine. Adding a new page causes a 404 error. If I delete records from wp_options where option_name = ‘_transient_rewrite_rules’ then the permalink rewrite rules rebuild and I can access the new page as expected. Now I have to do all these steps EVERY SINGLE TIME I ADD A NEW PAGE?!?

    P.S. .htaccess is configured properly and is writable.

    What can I do to alleviate this problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Add this code in htaccess and have a check with old and new posts:

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thanks,

    Shane G.

    Thread Starter devans-ws

    (@devans-ws)

    I’m sorry but how does that response answer the problem I explained? What’s happening is that new pages that DO exist are resolving to 404 errors (because of permalink caching issues within the wp_options table). Defining a 404 document is not the solution.

    That’s the 1st I’ve ever heard of a permalink cache issue with a table
    you are on a linux server, right?
    If so, try repairing the wp_options table

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

The topic ‘New Permalink Pages give 404 Error’ is closed to new replies.