Title: Subfolder redirecting to root folder
Last modified: August 19, 2016

---

# Subfolder redirecting to root folder

 *  [hshaff](https://wordpress.org/support/users/hshaff/)
 * (@hshaff)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/subfolder-redirecting-to-root-folder/)
 * 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)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/subfolder-redirecting-to-root-folder/#post-1756229)
 * Review [Moving_WordPress](http://codex.wordpress.org/Moving_WordPress).
 *  Thread Starter [hshaff](https://wordpress.org/support/users/hshaff/)
 * (@hshaff)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/subfolder-redirecting-to-root-folder/#post-1756261)
 * 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!
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/subfolder-redirecting-to-root-folder/#post-1756263)
 * 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](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
   a much easier approach. You only have to move 2 files (if I remember correctly).
 *  Thread Starter [hshaff](https://wordpress.org/support/users/hshaff/)
 * (@hshaff)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/subfolder-redirecting-to-root-folder/#post-1756273)
 * 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.
 *  [pisosse](https://wordpress.org/support/users/pisosse/)
 * (@pisosse)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/subfolder-redirecting-to-root-folder/#post-1756593)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [pisosse](https://wordpress.org/support/users/pisosse/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/subfolder-redirecting-to-root-folder/#post-1756593)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
