Title: Adding WP to root
Last modified: August 19, 2016

---

# Adding WP to root

 *  [emarsh](https://wordpress.org/support/users/emarsh/)
 * (@emarsh)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-wp-to-root/)
 * I have WP working on a subdirectory, with a normal static HTML page at root. 
   I have decided to use WP on the root as well, with the blog in a tab from the
   main site. I want to keep my blog in the subdirectory, and keep all links, etc.,
   in the same place, but share themes and whatnot with the main site. What is the
   best way to do this? Install another WP at root? Reinstall (I don’t want to do
   this)?
 * [erikmarshall.net](http://erikmarshall.net)
    [erikmarshall.net/blog](http://erikmarshall.net/blog)

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-wp-to-root/#post-1179252)
 * [http://codex.wordpress.org/Moving_WordPress](http://codex.wordpress.org/Moving_WordPress)
 *  Thread Starter [emarsh](https://wordpress.org/support/users/emarsh/)
 * (@emarsh)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-wp-to-root/#post-1179254)
 * I saw that before, but I’m still not sure what to do. Should I move the entire
   thing into root? If so, how do I get the blog to show up at /blog without reinstalling
   everything? Or should I simply change the Blog Address to root? If so, same question.
 *  Thread Starter [emarsh](https://wordpress.org/support/users/emarsh/)
 * (@emarsh)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/adding-wp-to-root/#post-1179347)
 * Maybe I should clarify. I want the blog at erikmarshall.net/blog to remain exactly
   the same – all the permalinks, entries, everything the same. I want to add WP
   to the root directory and have the /blog as a tab or link within the root. I 
   am looking for the simplest way to do this.
 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/adding-wp-to-root/#post-1179350)
 * You can actually include WP files in your code and use WP functions outside of
   the WP install directory. [See this, for example.](http://wpengineer.com/embed-wordpress-functions-outside-wordpress/)
   That might do what you need.
 *  Thread Starter [emarsh](https://wordpress.org/support/users/emarsh/)
 * (@emarsh)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/adding-wp-to-root/#post-1179362)
 * That might be just the key, apljdi. I’ll check it out.
 *  Thread Starter [emarsh](https://wordpress.org/support/users/emarsh/)
 * (@emarsh)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/adding-wp-to-root/#post-1179372)
 * I ended up moving the files to the root, changing the settings accordingly, and
   then making a page for the blog and one for the main page, pointing “posts” to
   the blog page, to keep the same subdir. It is that last part that is missing 
   from the tutorial.

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

The topic ‘Adding WP to root’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 6 replies
 * 3 participants
 * Last reply from: [emarsh](https://wordpress.org/support/users/emarsh/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/adding-wp-to-root/#post-1179372)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
