Title: Move the WP directory
Last modified: August 30, 2016

---

# Move the WP directory

 *  [roadsterstore](https://wordpress.org/support/users/roadsterstore/)
 * (@roadsterstore)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/move-the-wp-directory/)
 * Hello!!
 * I have a countdown page in the main domain with html, css, js, php… and I’m working
   on the WP in a directory –>domain.com/web.
 * I need to know how move the ‘web’ directory once I finished the WP site to replace
   the countdown page in the index.

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

 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/move-the-wp-directory/#post-6232696)
 * Here is the WordPress response to your question:
 * [https://codex.wordpress.org/Moving_WordPress](https://codex.wordpress.org/Moving_WordPress)
 * [https://www.google.com/search?q=moving+wordpress](https://www.google.com/search?q=moving+wordpress)
 * Another option is to leave it right where it is and save your actual URL at Dashboard
   > Settings > General and then just use this to redirect your domain to it:
 *     ```
       ## from https://my.bluehost.com/cgi/help/347#redirect
       # .htaccess main domain to subdirectory redirect
       # Do not change this line.
       RewriteEngine on
       # Change example.com to be your main domain.
       RewriteCond %{HTTP_HOST} ^(www.)?example.com$
       # Change 'subdirectory' to be the directory you will use for your main domain.
       RewriteCond %{REQUEST_URI} !^/subdirectory/
       # Don't change the following two lines.
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       # Change 'subdirectory' to be the directory you will use for your main domain.
       RewriteRule ^(.*)$ /subdirectory/$1
       # Change example.com to be your main domain again.
       # Change 'subdirectory' to be the directory you will use for your main domain
       # followed by / then the main file for your site, index.php, index.html, etc.
       RewriteCond %{HTTP_HOST} ^(www.)?example.com$
       #RewriteRule ^(/)?$ subdirectory/index.html [L]
       ## index.php for WordPress
       RewriteRule ^(/)?$ subdirectory/index.php [L]
       ```
   
 *  Thread Starter [roadsterstore](https://wordpress.org/support/users/roadsterstore/)
 * (@roadsterstore)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/move-the-wp-directory/#post-6232801)
 * I’ll check it!! You’re so kind, thx!!

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

The topic ‘Move the WP directory’ is closed to new replies.

## Tags

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

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 2 replies
 * 2 participants
 * Last reply from: [roadsterstore](https://wordpress.org/support/users/roadsterstore/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/move-the-wp-directory/#post-6232801)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
