Title: does this work in sub-directory?
Last modified: August 22, 2016

---

# does this work in sub-directory?

 *  [blaker19](https://wordpress.org/support/users/blaker19/)
 * (@blaker19)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/does-this-work-in-sub-directory/)
 * If I have an old site… example.com
    And I build a new WordPress site inside a
   folder… example.com/wp/
 * 1. Can I use the plugin for my redirects if I keep the wordpress files in the“
   wp” folder and use a “Pre-existing subdirectory install” as seen in…
 * [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
 * Or
 * 2. Do I need to migrate the new WordPress site to the root folder for the redirects
   to work?
 * [https://wordpress.org/plugins/redirection/](https://wordpress.org/plugins/redirection/)

Viewing 1 replies (of 1 total)

 *  [maiki](https://wordpress.org/support/users/maiki/)
 * (@maiki)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/does-this-work-in-sub-directory/#post-5236969)
 * That page in the Codex refers to a bunch of possible configurations, but the 
   good news is it is easy to figure out what you need to do with this plugin.
 * If your root site is still going to WordPress (when you go to example.com, it
   is WordPress creating the page), then you can use it as usual.
 * If your root site is not WordPress (when you go to example.com, and something
   besides WordPress creates that page), then you need to use a differnet method
   to redirect those hits to WordPress. This isn’t that hard, search for “domain
   redirects” or something like that, and you will find documentation on redirecting
   traffic, depending on your web server (Apache is common).
 * I don’t know what you are building, but I do know that I probably wouldn’t put
   WordPress in a sub-directory. Not because it is technically wrong or anything,
   just that WordPress can do most of what any web page can do on the full domain(
   i.e. example.com), and after a while most folks end up moving it there anyhow.

Viewing 1 replies (of 1 total)

The topic ‘does this work in sub-directory?’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [maiki](https://wordpress.org/support/users/maiki/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/does-this-work-in-sub-directory/#post-5236969)
 * Status: not resolved