Support » Fixing WordPress » Redirects from old pages on root cause loops

  • I created a new WP site for my client in a subdirectory called “hub” off of his root directory. When the site was ready, I put an index.htm file into his root directory which redirected to the hub directory. It works fine. His current search listings bring up pages from the old (root) site. To counter this, I created a page with the same name as the old root site page which contains a redirect to the corresponding page in the hub subdirectory for each of the old pages. But each of these new redirect pages goes into an endless loop, instead of going to the hub directory page. I imagine this has something to do with the .htaccess rewrite rules, but that’s a bit over my head. The .htaccess file on the root directory is completely empty, but the htaccess on the hub directory contains this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /hub/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /hub/index.php [L]

    # END WordPress

    Here’s the hub site:
    And here’s one of the looping redirects:

    Any help would be greatly appreciated 🙂


  • The topic ‘Redirects from old pages on root cause loops’ is closed to new replies.