Forums

[Plugin: WP Super Cache] Mixed permalinks with query strings error (4 posts)

  1. dyasonhat
    Member
    Posted 3 years ago #

    I have wordpress running with 'fancy_permalink' enabled and wp-super-cache is running fine. The problem I am having is when I append a query string onto some of the urls specifically in this case tdo tags fixes plugin.

    Eg. Normal URL is
    * http://travel.accommodationsphere.com/earth/south-africa/
    Eg. With query string is
    * http://travel.accommodationsphere.com/earth/south-africa/?tdo_tag=nature-reserve

    THe problem is that when cache is enabled it doesn't matter what query string gets stuck on it still serves the same cached page.

    Is there a setting I can change in .htaccess that will allow caching of the url with the query string?

    Eg. .../wp-content/cache/supercache/travel.accommodationsphere.com/earth/south-africa/tdo_tag=nature-reserve/index.html

    OR

    Eg. .../wp-content/cache/supercache/travel.accommodationsphere.com/earth/south-africa/index.html?tdo_tag=nature-reserve

    Your assistance is appreciated.

  2. Donncha O Caoimh
    Member
    Posted 3 years ago #

    Try adding this RewriteCond to the others. You'll need to add it twice, once in each block of code:

    RewriteCond %{QUERY_STRING} !.*=.*

    Does that help?

  3. dyasonhat
    Member
    Posted 3 years ago #

    Hey Thanks!

    Works out great, I'll ultimately have to mod tdo_tags to use pretty permalinks to get the use of caching but for now this is perfect.

    Dyasonhat

  4. Donncha O Caoimh
    Member
    Posted 3 years ago #

    The latest version of the plugin has this rewrite rule included by default.

Topic Closed

This topic has been closed to new replies.

About this Topic