• 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 to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    (@nbtwk04)

    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 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

    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
    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

    (@carolan)

    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.