Question

Some how W3 Total Cache produce on some pages this prefix "?repeat=w3tc". And I really want to remove this from my urls, but my research didn't help me.

Edit: I'm using other plugins now - The loading times are still good, I think.

Was it helpful?

Solution

I'm using the plugin again and this url var doesn't seem to appear. Yea it's very strange because I don't really change somthing - so it just seem to be a bug of the plugin.

OTHER TIPS

the plugin author at one time commented this:

This issue (caused by limitations in WordPress multi site that prevent the easy detection of the blog receiving a request)

are you running multi-site?

Put this in the theme_setup() function inside functions.php:

if (strpos($_SERVER['QUERY_STRING'], 'repeat=w3tc') !== false) {
 $uri = explode('?', $_SERVER['REQUEST_URI']);
 $queryString = '';
 if (isset($uri[1])) {
  $queryString = trim(str_replace('repeat=w3tc', '', $uri[1]), '&');
  $queryString = (!empty($queryString)) ? '?' . $queryString : '';
 }
 wp_redirect(home_url($uri[0] . $queryString), 301);
 exit;
}

see if it stops it.

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top