Title: problem after moving directory
Last modified: August 20, 2016

---

# problem after moving directory

 *  [tkaufman](https://wordpress.org/support/users/tkaufman/)
 * (@tkaufman)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/)
 * Hi
 * I’ve moved my wp directory from wordpress to author, but after I’ve completed
   a search and hit the home link, the browser tries to go to the old directory 
   and not the new one, resulting in a 404 error.
 * Any thoughts as to why?
 * thanks

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/problem-after-moving-directory/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problem-after-moving-directory/page/2/?output_format=md)

 *  [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2496650)
 * Have you changed the setting in the wp-config file (if it is there)? if not have
   you changed the path of the install in the database?
 *  Thread Starter [tkaufman](https://wordpress.org/support/users/tkaufman/)
 * (@tkaufman)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2496697)
 * No, I’m a NewB, tell me everything please
 * I originally installed into [http://www.myurl.com/wordpress](http://www.myurl.com/wordpress),
   
   then changed it using the dashboard to [http://www.myurl.com/author](http://www.myurl.com/author)
 * What else do I need to do?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2496705)
 * See [Changing_The_Site_URL](http://codex.wordpress.org/Changing_The_Site_URL)
 *  Thread Starter [tkaufman](https://wordpress.org/support/users/tkaufman/)
 * (@tkaufman)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2496728)
 * Wow, this is unbelievably complicated. All I want to do is move WP from one directory
   to another. Is there no simple way to do that?
 * I have gone to settings > general > and input the new WP address and new site
   address…
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2496729)
 * And?
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2496744)
 * > Wow, this is unbelievably complicated. All I want to do is move WP from one
   > directory to another. Is there no simple way to do that?
 * If you using cpanel is matter of seconds to move wordpress.
 *  Thread Starter [tkaufman](https://wordpress.org/support/users/tkaufman/)
 * (@tkaufman)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2496770)
 * And… I’ve made the two changes as outlined in the instructions, yet when I start
   at the [http://www.myurl.com/author](http://www.myurl.com/author) site, WP looks
   for (and can’t find because I deleted it) the old [http://www.myurl.com/wordpress](http://www.myurl.com/wordpress)
   folder.
 * What is cpanel?
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2496771)
 * Cpanel is a panel just like desktop on a host server where you manage your files
   and folders for website.
 * Where exactly you have your wordpress files and folders in author or wordpress?
   
   what do you have as wordpress url and site url?
 *  Thread Starter [tkaufman](https://wordpress.org/support/users/tkaufman/)
 * (@tkaufman)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2496806)
 * Here’s what’s so strange:
 * My old directory is [http://www.myurl.com/wordpress](http://www.myurl.com/wordpress)
   so wordpress has its own place off the root.
 * My new directory is [http://www.myurl.com/author](http://www.myurl.com/author)
 * Everything works fine EXCEPT for images. I’ve used Velvet Blues Update URLs plugin
   and it seemed to work for the new directory. I thought, sweet, and deleted my
   old /wordpress folder. THEN all the images for the /author site went away.
 * I restored the old /wordpress folder, and the images came back, even though i
   was now using the new folder (author)
 * So I renamed the old folder /wordpress_old and guess what? The images went away
   again (thought I could read their descriptions on the page) I changed the name
   of the old directory back to /wordpress and the images once again returned.
 * So…anyone have an idea what’s going on here?
 * thanks
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2496814)
 * For some background
 * [http://wordpress.org/support/topic/make-home-page-not-the-home-page?replies=33](http://wordpress.org/support/topic/make-home-page-not-the-home-page?replies=33)
 * Tom? It’s the references in your post that refer back to the old location at /
   wordpress and not /author. You’ll need to go in and change them all.
 * That can be accomplished with the search and replace plugin BUT you really need
   to backup the whole works, database and files.
 * The whole thing can be found at your other thread including the solution.
 * [http://wordpress.org/support/topic/make-home-page-not-the-home-page/page/2?replies=24#post-2543302](http://wordpress.org/support/topic/make-home-page-not-the-home-page/page/2?replies=24#post-2543302)
 * >  There is a solution using search and replace, but it really does require that
   > you make a full backup of your blog’s database and files.
   > [http://codex.wordpress.org/WordPress_Backups](http://codex.wordpress.org/WordPress_Backups)
   > 
   > [http://codex.wordpress.org/Backing_Up_Your_Database](http://codex.wordpress.org/Backing_Up_Your_Database)
   > [http://codex.wordpress.org/Restoring_Your_Database_From_Backup](http://codex.wordpress.org/Restoring_Your_Database_From_Backup)
   > This is just in case but if something goes catastrophically bad then this will
   > save you hours of grief.
   > Once that’s done, install the Search and Replace plugin.
   > [http://wordpress.org/extend/plugins/search-and-replace/](http://wordpress.org/extend/plugins/search-and-replace/)
   > Use that to replace all occurrences of [http://thomaskaufman.com/wordpress](http://thomaskaufman.com/wordpress)
   > with [http://thomaskaufman.com/author](http://thomaskaufman.com/author). Please
   > note to leave off the trailing /.
   > That should take care of all the old references in the database and change 
   > them to the new URL.
   > And if something goes wrong, you can restore your database and get it back 
   > to the way it was.
 * Good luck.
 *  Thread Starter [tkaufman](https://wordpress.org/support/users/tkaufman/)
 * (@tkaufman)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2496931)
 * You’re right, some of the images stubbornly keep the old /wordpress directory
   as part of their url, while others don’t. What I’ve tried Velvet Blues, Replace
   URLs but it didn’t do everything it should have.
 * What kind of search and replace plugin would work? Any recommendations?
 * thanks
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2496934)
 * Well, just as a suggestion, this one fit the bill when I played around with it.
   😉
 * [http://wordpress.org/extend/plugins/search-and-replace/](http://wordpress.org/extend/plugins/search-and-replace/)
 * It did exactly what it said it would but that sort of thing can be tricky. I 
   know i sound like a broken record, but backing up is always a good idea.
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2496935)
 * You can use this code and see if it replaces all urls.
    Make a back up database
   and add this in sql tab change old-domain.com and new-domain.com to your urls.
 *     ```
       UPDATE wp_posts SET guid =
       replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');
       ```
   
 *  [henriemedia](https://wordpress.org/support/users/henriemedia/)
 * (@henriemedia)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2496937)
 * You will need to do the same search and replace with “post_content” for any embedded
   links.
 *  Thread Starter [tkaufman](https://wordpress.org/support/users/tkaufman/)
 * (@tkaufman)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/#post-2497093)
 * Hi everyone,
 * Thanks for your answers. I did find and activate the search and replace plug-
   in, but got this message when I attempted to use it:
 * » Attempting to perform search and replace …
 * » Search [http://thomaskaufman.com/wordpress](http://thomaskaufman.com/wordpress)…
   and replace with [http://thomaskaufman.com/author](http://thomaskaufman.com/author)
 *  Looking & Replace @ all …
 *  Sorry, [http://thomaskaufman.com/wordpress](http://thomaskaufman.com/wordpress)
   is not found in this Database(tho1127803404051)!
 * What’ weird is that certain images refer back to the old address, so the plug-
   in should’ve changed those…
 * Govpatel sent me some code, but I do not know where the code is supposed to go?
 * thanks

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/problem-after-moving-directory/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problem-after-moving-directory/page/2/?output_format=md)

The topic ‘problem after moving directory’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 6 participants
 * Last reply from: [tkaufman](https://wordpress.org/support/users/tkaufman/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/problem-after-moving-directory/page/2/#post-2497094)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
