• Resolved blackhatrus

    (@blackhatrus)


    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)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @blackhatrus

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    That redirect “?repeat=w3tc” is temporary (issued once) under normal conditions.
    The wp-content/w3tc-config/blogs.php file is created on that redirect with blog URLs mapping info. A permanent redirect is usually caused by an inability to create that file (locked down permissions). So most likely there is some problem with your environment.
    You should check the permissions, (755 folders, 644 files), manually delete the blogs.php file (it should be recreated)
    I hope this helps!
    Thanks!

    Thread Starter blackhatrus

    (@blackhatrus)

    Thanks,
    Looks like the issue was resolved after your advise.
    Regards

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @blackhatrus

    You are most welcome!

    We would really appreciate it if you could take a minute and post a review?here. This will help us to continue offering a top-notch product to users.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“?repeat=w3tc” in URL string for multisite install’ is closed to new replies.