• Hi,

    Last night I tried to create and publish a new post on my blog. Soon realised that the post wouldn’t save no matter what I tried. Since then, I’ve read numerous forum-posts here detailing similar problems.

    Some people seem to be solving the problem by clearing/modifying fields in their WordPress database tables. In particular, in the WP_OPTIONS table. Some seem to be solving it be deactivating/upgrading plugins.

    Anyway, I’ve spent all day today playing around with my database – eventually deleting it all together and restoring a back-up from Jan-2008, but all to no avail.

    I finally fixed the post save problem by inserting this code in my .htaccess file (.htaccess file located in WordPress route directory)

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    Then restored my current database and all seems to be working fine again.

    BUT, I’ve just noticed I’m having a problem with my blog being stuck on the Homepage now!! If I click on a single post or try to navigate to page 2 of the blog, the page refreshes as the homepage.

    Have I distrubed something in my .htaccess?
    It now looks like:

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Or could it be something else?

    Any help greatly appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter npaitken

    (@npaitken)

    Just solved the stuck homepage problem. It was a problem caused by me playing around with .htaccess file and not returning settings to normal.

    My blog is located in /blog/ folder so mod_rewrite code in .htaccess was

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    but should in fact be

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
Viewing 1 replies (of 1 total)
  • The topic ‘post save problem and blog stuck on homepage’ is closed to new replies.