• I just upgraded my wp install from 3.0.1 to 3.1.3.

    Everything seems to work fine except for this. The home page, and any page that was linked to using the “?page_id=xxxx” format are not accessible.

    WordPress displays some page from a long time ago before I had even begun building up the site, it doesn’t redirect the url to a pretty permalink, and when I check the get operation that’s snagging the page, it shows a “304 Not Modified” message.

    Is this an issue with my .htaccess file? Is there somewhere in the wp-admin I can go to try to fix this? I might be able to recode all the page_id= links, though that would be incredibly difficult, but the home page would still be missing!

    Any help would be greatly appreciated.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Trying resetting your permalinks.

    Dashboard / Settings / Permalinks

    Take note of what the permalinks are now.

    Reset to Default and update.

    Then set back to what they were at first and update.

    Behind the scenes this forces WordPress to rewrite a number of things. This often (but not always) resolves permalinks issues.

    Thread Starter gnirsh

    (@gnirsh)

    that actually made it worse. Now, none of my custom post types can be accessed.

    I am getting a not found page for all of them.

    Something is wrong then as resetting permalinks by itself can’t make it worse when you reset them to what they were in the first place.

    What is in your htaccess file?

    Do you have a database backup from before you upgraded?

    Thread Starter gnirsh

    (@gnirsh)

    reinstalling wordpress seemed to fix the custom post type issue.

    Here’s the .htaccess file. deactivating and deleting wpsupercache doesn’t seem to do anything.

    Also, it seems on the pages that I’m linking to using “?page_id=xxx”, it’s actually a “301 moved permanently” error I’m getting the first time, then a 304 error on subsequent refreshes.

    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /sustainlv/
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{DOCUMENT_ROOT}/sustainlv/wp-content/cache/supercache/%{HTTP_HOST}/sustainlv/$1/index.html.gz -f
    RewriteRule ^(.*) “/sustainlv/wp-content/cache/supercache/%{HTTP_HOST}/sustainlv/$1/index.html.gz” [L]

    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond %{DOCUMENT_ROOT}/sustainlv/wp-content/cache/supercache/%{HTTP_HOST}/sustainlv/$1/index.html -f
    RewriteRule ^(.*) “/sustainlv/wp-content/cache/supercache/%{HTTP_HOST}/sustainlv/$1/index.html” [L]
    </IfModule>
    # END WPSuperCache

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /sustainlv/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /sustainlv/index.php [L]
    </IfModule>

    # END WordPress

    FileETag none

    Thread Starter gnirsh

    (@gnirsh)

    Yeah, I have a backup, I actually already tried to go back to the previous install, and it didn’t help either.

    Everything was working fine until you upgraded. So something changed…

    For debugging purposes I’d disable SuperCache and remove its code from htaccess file. Go back to plain simple WordPress until you find out what is wrong.

    Next thing might be disable all plugins and turn them back on one by one to see if the latest upgrade broke a plugin’s code.

    Thread Starter gnirsh

    (@gnirsh)

    Supercache disabled and removed. all references to it removed from wp-config and .htaccess. disabled all plugins.

    Still no change. Man, this is frustrating.

    try resetting your permalinks again

    Thread Starter gnirsh

    (@gnirsh)

    no luck. It seems I need to do something more significant here.

    Any ideas of how to proceed?

    Have you tried:

    – switching to the Twenty Ten theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Thread Starter gnirsh

    (@gnirsh)

    It’s not a theme issue, I switched themes with the same result.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘.htaccess "304 not modified" ?page_id=xxxx error’ is closed to new replies.