“?repeat=w3tc” in URL string for multisite install
-
Hello,
I do enjoy your plugin and use it for many of my projects. But it appears I have a problem when I tried to use it for my first multisite project with subdomains. String ‘repeat=w3tc’ gets added to subdomian url’s. I googled potential solution and added the following to 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; }
But it did not help. Is there any solution for this?
My plugin version Version 2.2.1
Kind regards.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘“?repeat=w3tc” in URL string for multisite install’ is closed to new replies.