• Hi,

    Im using Wp Super Cache,
    and is working, .htaccess rules are writen correctly by the plugin itself and it does cache the blog.

    However when i which to see a single post or go to page 2, it just load the homepage as being that page.

    How do i solve this?

    My htaccess file is in the root as where the blog is:

    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    AddDefaultCharset UTF-8
    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 %{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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter loller

    (@loller)

    complete code:

    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    AddDefaultCharset UTF-8
    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 %{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
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

    Super cache does work and caches everything. Except every blog link get directed to the homepage instead of page 2 or the blog post.

    Are you using the ?p=X url format or /yyyy/mm/dd/blogname/ ?

    Thread Starter loller

    (@loller)

    ?p=X

    and additional problem: I can’t change post their dates, for instance a post is published 1 hour ago at 18:01 , i edit it and change it to 18:02 => doesnt do it; it saves but then when i check its still at 18:01

    thx

    You’ll have to set the plugin to “Half on”. One of the requirements for the static cache is that you use “fancy permalinks”. Check the readme.txt for further info.

    Not sure about the date thing tbh, it could be related.

    Thread Starter loller

    (@loller)

    Yes hi, ive read that but i cant find the option ‘fancy links’

    In the tab : Customize Permalink Structure

    i only have :
    Default
    Day and name
    Month and name
    Numeric

    Thread Starter loller

    (@loller)

    Are there consequences ,if you tell me where to find it, if i change it?

    (http://crn-web.com/permalink-redirect-wordpress-plugin-review/)

    Thread Starter loller

    (@loller)

    Is it lot difference when only using half on option?

    loller – try month and name, or whatever suits you. As long as it’s not the ?p= format!

    Half-on option means the supercache part of the plugin won’t be active. You probably won’t notice!

    perotcharts

    (@perotcharts)

    I have a different problem. I use month and name fancy permalink structure. However, if I want to prefer to single posts in a single category I use http://site.com/category/page/N where N = 2, 3, 4, etc. When supercache is on, it seems to rewrite the url as http://site.com/index.php?cat=xx, which fails, and goes to home page.

    Basically I want to refer to each and every single page in a category and have supercache work. Is this possible?

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

The topic ‘[Plugin: WP Super Cache] [Wp- Super cache] Single posts = redirect to homepage’ is closed to new replies.