Moving wordpress from /dir to main folder

Make sure you backup everything then:

  • Move the content of /dir one level up, make sure you move hidden files as well (I care about the .htaccess file and maybe a .git folder)
  • Download Search & Replace for WordPress, upload it to your server
  • Access it with the url: http://www.xclo.co.uk/searchreplacedb2.php
  • Follow the instructions, in brief, the script will read the database details from your wp-config.php and allow you to specify the change that you want to be made in the database, in your case you want all occurencies of www.xclo.co.uk/dir to be replaced by www.xclo.co.uk.

Tip: since you mentionned you URL publically, I suggest you rename the script before you upload it, otherwise your database connection details will be exposed.