Title: Moving WP
Last modified: February 7, 2019

---

# Moving WP

 *  [nbtwk04](https://wordpress.org/support/users/nbtwk04/)
 * (@nbtwk04)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/moving-wp-5/)
 * Hi,
    I want to simulate to move my current site. So I copied completely the complete
   file structure to xampp/htdocs folder using file zilla. I exported the database
   and replaced all links in the sql file so that they match my new environment.
   After all, the site starts, but all the links direct to the real original site
   in the web. A search within the complete file structure shows no hint of a remaining
   old link. Does anyone know where this small puzzle part hides?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmoving-wp-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/moving-wp-5/#post-11181539)
 * If you changed all the references to the live domain, and not just links, then
   you should look in the .htaccess file and see if there is a canonical redirect.
 *  Thread Starter [nbtwk04](https://wordpress.org/support/users/nbtwk04/)
 * (@nbtwk04)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/moving-wp-5/#post-11187576)
 * Hi Joy, thaks for your quick answer.
 * I also think that it has to do with the .htaccess file, which I don’t fully understand
   yet.
 * In the console I get somthing like:
    GET [http://roland-pc/wp-content/plugins/woocommerce-product-archive-customiser/assets/css/layout.css?ver=5.0.3](http://roland-pc/wp-content/plugins/woocommerce-product-archive-customiser/assets/css/layout.css?ver=5.0.3)
   net::ERR_ABORTED 404 (Not Found)
 * These are the links in the format ‘wp’ will find in the DB (without the subfolder).
   It does not insert the “/wordpress/” subfolder after the host address. The goal
   was to hide that folder in the visible URL of the browser. Or, is it wrong having
   removed the folder in the links stored in the DB?
 * //Roland
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/moving-wp-5/#post-11190089)
 * You first said you changed all links.
    I mentioned that if you changed all references,
   not just links, that it was .htaccess. Now it sounds like you only changed links
   and not other references in the options.
 * It sounds like you should read this, which is linked from the Settings > General
   page: [https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
   
   It applies to moving to a subfolder or to the root (in reverse). My standard 
   way to install WordPress is to put it in a subfolder but have it control the 
   root. It just seems cleaner to me. But doing that does mean that links to images
   have the subfolder while links to other posts do not. So think about how you 
   want it to be.
 *  [carolan](https://wordpress.org/support/users/carolan/)
 * (@carolan)
 * [7 years ago](https://wordpress.org/support/topic/moving-wp-5/#post-11437417)
 * I have an old wp site e.g. xxx.com. I have built a new wp site yyy.com. I want
   to move yyy.com to xxx.com so that it is now xxx.com. Is it a simple matter of
   deleting existing xxx.com wp files and database and installing yyy.com files 
   and databasecom

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

The topic ‘Moving WP’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [carolan](https://wordpress.org/support/users/carolan/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/moving-wp-5/#post-11437417)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
