• Hi there – I just moved a client site from a test subfolder to the root folder. The move went smoothly (for the most part), and I moved the contents of their old site to an archival folder. For the record, their old site was a static html site built in dreamweaver, not a WP site.

    Before moving the new site to the root folder, I started by moving the old site to a subfolder (ex: site.net/oldsite) – everything worked fine.

    Now that the new site is up and running, the old site is redirecting to the new WP site with a “page not found” message.

    I am thinking this has something to do with my permalinks? I’m not sure where to go from here!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter hshaff

    (@hshaff)

    Yes…I read this line:

    If you are using Permalinks, go to the Administration > Settings > Permalinks panel and update your Permalink structure to your .htaccess file, which should be in the same directory as the main index.php file.

    I don’t know exactly what this means though. It is telling me to update, but what am I updating it to?

    Do I need to add a permanent rewrite code? This step is unclear to me and more specific guidance would be appreciated!

    Try resetting the permalinks to the default structure and then setting the custom structure back up again.

    Next time you do this, you might find Giving_WordPress_Its_Own_Directory a much easier approach. You only have to move 2 files (if I remember correctly).

    Thread Starter hshaff

    (@hshaff)

    I reset permalinks but the old site is still redirecting to the new. This is what my .htaccess file looks like:

    AddType text/html .shtml
    AddType text/x-server-parsed-html .shtml
    Options -Indexes

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

    These commands don’t mean much to me. I tried deleting the first rewrite rule (^index\.php$) and saw no changes.

    any news on this.. got the same problem..

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Subfolder redirecting to root folder’ is closed to new replies.