Title: Publishing from subdirectory
Last modified: August 31, 2016

---

# Publishing from subdirectory

 *  [memmuli](https://wordpress.org/support/users/memmuli/)
 * (@memmuli)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/publishing-from-subdirectory/)
 * Hi,
    I have old WordPress in my root directory and I have made new one in sub
   directory /WP. How do I publish the new site ?
 * I found this:
    [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
 * But do I edit the **root **directory’s .htacess by adding this in the end? or
   do I copy the subdirectorys .htacess and place that in root and add this on that,
   or how…
 * RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$ RewriteRule
   ^(/)?$ WP [L]
 * (do I **add this** in the end of other text in .htacess?)
 * … or is it better to copy the index.php and .htaccess and edit the index.php 
   file. (what is the difference anyway?)
 * and then delete all the other “old WP “files.
 * What is the best way to proceed?

Viewing 1 replies (of 1 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/publishing-from-subdirectory/#post-7037874)
 * I actually recommend this: [https://codex.wordpress.org/Moving_WordPress#Moving_Directories_On_Your_Existing_Server](https://codex.wordpress.org/Moving_WordPress#Moving_Directories_On_Your_Existing_Server)
 * That way, you’ll completely replace the old root site, and you won’t have to 
   deal with an extra `/wordpress/` directory.

Viewing 1 replies (of 1 total)

The topic ‘Publishing from subdirectory’ is closed to new replies.

## Tags

 * [subdirectory](https://wordpress.org/support/topic-tag/subdirectory/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/publishing-from-subdirectory/#post-7037874)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
