WordPress.org

Ready to get started?Download WordPress

Forums

Redirects from old pages on root cause loops (1 post)

  1. DigitalProminence
    Member
    Posted 1 year ago #

    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]
    </IfModule>

    # END WordPress
    ________________________________________________________

    Here's the hub site: http://selfreliancestrategies.com/hub/
    And here's one of the looping redirects: http://www.selfreliancestrategies.com/Books.htm

    Any help would be greatly appreciated :-)

    Scott

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by DigitalProminence
  • This topic is not resolved
  • WordPress version: 3.5.1