Title: sub-folder vs root folder for url
Last modified: August 18, 2016

---

# sub-folder vs root folder for url

 *  [jpierre](https://wordpress.org/support/users/jpierre/)
 * (@jpierre)
 * [22 years ago](https://wordpress.org/support/topic/sub-folder-vs-root-folder-for-url/)
 * I may sound ignorant, but: I have installed 1.2 in a folder under the root folder(…/
   wp). In the root folder I have my old static blog (index.htm). I am now ready
   to make the switch. How can I redirect in a way that when pointing towards [http://www.carnetsdetoile.ca](http://www.carnetsdetoile.ca)
   it gets [http://www.carnetsdetoile.ca/wp](http://www.carnetsdetoile.ca/wp) instead?
   
   After long hours of _reproducing_ the old site, it’s frustrating to get halted
   so close to the end. So, if someone could give a hand, I’d appreciate. JP

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

 *  [Daynah](https://wordpress.org/support/users/phpprincess/)
 * (@phpprincess)
 * [22 years ago](https://wordpress.org/support/topic/sub-folder-vs-root-folder-for-url/#post-57861)
 * You can edit the index.html file and put:
    `<html><head> <META HTTP-EQUIV=Refresh
   CONTENT="0; URL=http://www.carnetsdetoile.ca/wp"> </head> <body></body> </html
   > This is just one method… using HTML Meta Refresh.
 *  Thread Starter [jpierre](https://wordpress.org/support/users/jpierre/)
 * (@jpierre)
 * [22 years ago](https://wordpress.org/support/topic/sub-folder-vs-root-folder-for-url/#post-57865)
 * OK, but wouldn’t that force me to keep the old index.htm?
 *  [Daynah](https://wordpress.org/support/users/phpprincess/)
 * (@phpprincess)
 * [22 years ago](https://wordpress.org/support/topic/sub-folder-vs-root-folder-for-url/#post-57866)
 * Yes, or you can create a .htaccess redirect.
    [http://www.freewebmasterhelp.com/tutorials/htaccess/2](http://www.freewebmasterhelp.com/tutorials/htaccess/2)
 *  Thread Starter [jpierre](https://wordpress.org/support/users/jpierre/)
 * (@jpierre)
 * [22 years ago](https://wordpress.org/support/topic/sub-folder-vs-root-folder-for-url/#post-57870)
 * phpprincess: thanks for the tips. For now I’ve used your first method, and it
   works, though one has the time to see the old page passing before the browser
   gets to the new one. But it will give me some time to explore the .htaccess method.
   In the mean time it at least allows all the new material to be viewed.
    JP
 *  [icyshard](https://wordpress.org/support/users/icyshard/)
 * (@icyshard)
 * [22 years ago](https://wordpress.org/support/topic/sub-folder-vs-root-folder-for-url/#post-57879)
 * jpierre, if you want the old page to stay up for a longer amount of time before
   redirecting to your new WP site, simply change the CONTENT=”0; part of the code
   to whatever amount of time (in seconds) that you like. If you want it to stay
   up for 30 seconds, for example, simply change the line to say CONTENT=”30;
    You
   could then include some text in the body tag explaining the site switch and that
   they will be redirected.

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

The topic ‘sub-folder vs root folder for url’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 5 replies
 * 3 participants
 * Last reply from: [icyshard](https://wordpress.org/support/users/icyshard/)
 * Last activity: [22 years ago](https://wordpress.org/support/topic/sub-folder-vs-root-folder-for-url/#post-57879)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
