WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Rewriting failing for an unknown reason (3 posts)

  1. sabinou
    Member
    Posted 5 years ago #

    Hello,

    I do not understand why and how, but it's been two or three weeks that URL rewriting partially fails to work on my blog.

    Simple permalinks as myblog.net/?p=466 do NOT work, they will just load the homepage myblog.net

    Complex permalinks, as chosen to use in my WP options, still work, for instance myblog.net/month/date/post-title

    Do you have any idea as to why this is happening ?

    I *suppose* this is in relation to my htaccess, but my htaccess hasn't changed in months, though...

    If you want to take a look, here it is :

    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*
    RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
    
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*
    RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
    </IfModule>
    
    # END WPSuperCache
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thanks a LOT if you can help me with a suggestion :-)

    Regards,

    Sabinou

  2. sabinou
    Member
    Posted 5 years ago #

    A precision I should have given before, since WP-Super-Cache has modified my htaccess file :

    I also tried with the WP-Super-Cache plugin deactivated and the htaccess file cleared of the WP-Super-Cache additions. And that changed nothing, alas.

  3. sabinou
    Member
    Posted 5 years ago #

    OK, final update, I made something that solved the problem, even though I have trouble understanding what was wrong.

    I upgraded WP Super Cache to its latest version (currently 8.0.1), made sure, following the readme.txt, to also update as required the (root)/wp-content/cache/.htaccess file, and TA-DAAAAA, the randomized links are now working again.

    Go figure !

    I set the thread as "case resolved" :)

Topic Closed

This topic has been closed to new replies.

About this Topic