• Hi there

    I have been trying unsuccessfully to move a site. It’s currently on a subfolder. I wanted to move it to a new domain, and move it into the root directory. (in preparation for putting it back on the root of the original domain, and make some other changes)

    These changes are going to take some time, so I didn’t want to do it in situ.

    Now however I am getting very strange URLs and have lost all my styling. I suspect it’s all related so here is the sort of thing I am getting with my URLs…

    mydomain.com/wp-admin/mydomain.com/wp-admin

    when what I wanted was mydomain.com/wp-admin

    Why am I getting the double-up in the URL?

    I’m also sometimes getting redirect loops taking place.

    I checked in PHP MyAdmin and the site url is correctly showing the root of the new domain. I also can’t see anything untoward in the .htaccess file.

    I was able to get to the dashboard, but with no CSS styling. I thought I would try re-saving the permalinks, but now I’m left with a 500 Internal Server Error.

    What am I missing???

    Thanks, Brett

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Brett,

    WordPress stores much of its critical domain information in serialized arrays in the database, so to transfer urls/domains you’ll need to use a script or plugin.

    Remember to make a backup first!

    Thread Starter Brett

    (@kraigerb)

    Thanks a lot Andrew. I had originally used a script to do this, but it didn’t work. I’ll try a different one then. It seems that going from a subdomain to the root is creating difficulty because the script I used first (Duplicator) has worked fine every other time.

    Thanks for your help. If I can’t get it to work then I might change my plans and just export and import all the posts. I’m pretty much going to be starting from scratch from a design point of view anyway.

    Thanks again.
    Brett

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Moving from site in subfolder to new domain (at root)’ is closed to new replies.