Title: Problems moving WordPress from root to subdirectory
Last modified: August 21, 2016

---

# Problems moving WordPress from root to subdirectory

 *  [thatb](https://wordpress.org/support/users/thatb/)
 * (@thatb)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/problems-moving-wordpress-from-root-to-subdirectory/)
 * Hi there,
 * I know I did something wrong but can’t figure out what.
 * My wordpress blog was in my root, and I created a directory called “journal” 
   and moved it in there.
 * I then added to my wp-config.php file, which is in my new “journal” directory
   the following code:
 * define(‘WP_HOME’,’[http://bettinashzu.com/journal/&#8217](http://bettinashzu.com/journal/&#8217););
   
   define(‘WP_SITEURL’,’[http://bettinashzu.com/&#8217](http://bettinashzu.com/&#8217););
 * I tried to use the Velvet Blues plugin to change my links, but that didn’t work.
 * I then found this page and tried to follow its directions: [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
 * For step 7, I got a bit stuck: “Copy (NOT MOVE!) the index.php and .htaccess 
   files from the WordPress directory into the root directory of your site (Blog
   address).”
 * I do not have a .htaccess file, so I have index.php in both my root and in my“
   journal” directory.
 * In my root I also have a file named index.html. Does this interfere with index.
   php?
 * For both of the index.php files, I have edited it thus:
 * require(‘./journal/wp-blog-header.php’);
 * When I try to login at [http://bettinashzu.com/journal/wp-login.php](http://bettinashzu.com/journal/wp-login.php),
   however, I get directed to [http://bettinashzu.com/wp-login.php](http://bettinashzu.com/wp-login.php)
   
   with an error message saying that “Not Found
 * The requested URL /wp-login.php was not found on this server.”
 * What am I doing wrong?
 * I have no php experience, some HTML/CSS/JavaScript.
 * Thanks so much!

Viewing 1 replies (of 1 total)

 *  [Somnath Jadhav](https://wordpress.org/support/users/somnathjadhav/)
 * (@somnathjadhav)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/problems-moving-wordpress-from-root-to-subdirectory/#post-4074686)
 * Update new links in the database .use Search and replace plugin. If you can access
   phpmyadmin ,open wp_options or tbleprefix_options table ,edit siteurl ,and home(
   column n 36) values. Your problem will be solved.

Viewing 1 replies (of 1 total)

The topic ‘Problems moving WordPress from root to subdirectory’ is closed to new
replies.

## Tags

 * [moving-wordpress](https://wordpress.org/support/topic-tag/moving-wordpress/)
 * [Wordpress Migration](https://wordpress.org/support/topic-tag/wordpress-migration/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Somnath Jadhav](https://wordpress.org/support/users/somnathjadhav/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/problems-moving-wordpress-from-root-to-subdirectory/#post-4074686)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
