Trouble moving from a sub folder to root domain - help needed!

Hey guys,

I’ve just come across this forum after a quick Google and was wondering whether you could help me out.

I’m currently moving a WordPress site from a sub folder - located at - to its root domain.

I have followed this tutorial but I seemed to have stumbled after point six. If I try to login to the WP admin panel I’m getting re-directed to here

Can anyone help me out here?

Much appreciated! :slight_smile:

maybe you have to check this line : require(‘./wordpress/wp-blog-header.php’); in your case it’s should be :


I’ve just checked that but it looks fine to me. Within the index.php, yeah?

Ok, so you would try this :

Sorry, what exactly do I have to do here?

Anyone able to help?

Check the htaccess file, maybe theres a redirect or something in there??

You have to follow the steps… start from :

If you want to move WordPress to your root directory, make sure all index.php, .htaccess, and other files that might be copied over are backed up and/or moved, and that the root directory is ready for the new WordPress files.

I can’t login to the WordPress dashboard though.

What I have done is change both the Site and Home URLs in the wp-config file to the root domain which has solved the links on-page but I still can’t get to the Admin panel.

Just tried copying the wp-admin folder to the root domain to no avail.

Can I just go from Point 8 on that tutorial where it says “Move your WordPress core files to the new location. This includes the files found within the original directory, such as, and all the sub-directories, to the new location.”

it’s really important to add the new correct WordPress address (URI) and Site link URL… if you can’t login, use PhpmyAdmin from your control panel, open your database and go to wp-options table : The first option is is for siteurl Then go to the next page of the table and check the home value. This should be the URL to the main site URL… save the table then try to get to the wp-admin ! because wehn i check your website all is good but you have to fixe this URI Mess…

Both the Site URL and WordPress Address have been changed in the wp-config - is it not just a case of moving the rest of the files from the sub folder to the root domain??

Looks to me like you’ve managed to do the transition. Are you still experiencing log in difficulties? Here’s some help from the wordpress codex: they’re actually pretty helpful.

Just check your Database using Phpmyadmin and make the changes… im sure it’s the problem as You didn’t Do that on the old Wordpress dashboard before moving the files to the root… just check the database because in your Website source i still see some urls like :[B]WordPress/[/B]wp-content/uploads/2013/01/tyisaf_bg.jpg[B]WordPress[/B]/wp-content/uploads/2012/11/home.jpg

You have to update your database, make a backup before making changes and check what i said before…

I apologise for my ignorance or lack of understanding, but how do I access PhpMyAdmin?

PhpMyAdmin is included with “packaged” servers eg WAMP, XAMPP. If you installed Apache, MySQL and PHP individually you will need to install PhpMyAdmin (or you might prefer MySQL Workbench?) as well.

You’ve completely lost me there.

:blush: mea culpa

I was thinking of a localhost development server.

Many hosts have PhpMyAdmin for the database interface, but yours may not. If you log in to your host you should find something there as a way to access your database, no?

I don’t have access to that through my Control Panel, no.

Ok so can you just tell us how you manage your website database!?