[Plugin: W3 Total Cache] somesite.net/\ causing home page caching problems
-
Love the plugin. Just a quick note. I was working on a site that was linked to incorrectly… something like this somesite.net/\
When you have pretty permalinks enabled in WordPress, it tries to match strange characters like that to a category… meaning that somesite.net/\ may sometimes be treated like somesite.net/category. Consequently, the home page would occasionally show up cached as a category page.
There’s probably a good way to fix this within the plugin (e.g. make sure that the server request url for the home page matches somesite.net/), but my workaround was this in the htaccess file:
RewriteEngine On
RewriteBase /
RewriteRule ^[^\w\?#]+ https://www.somesite.net/ [L]That will strip out any links that don’t match somesite.net/starts-with-a-letter… probably doesn’t work for non-pretty-urls.
- The topic ‘[Plugin: W3 Total Cache] somesite.net/\ causing home page caching problems’ is closed to new replies.