Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a simple question.

I want to move my wordpress installation from www.xclo.co.uk/dir to www.xclo.co.uk

Please can someone tell me how to do this.

share|improve this question
2  
Have you read the Codex article: Moving WordPress? –  Charles Clarkson Aug 3 '13 at 20:20
    
Yes but I do not understand. How do I do it? –  Kev Hopwood Aug 3 '13 at 20:34
    
You do not understand any of it? Or you do not understand part of it? If so, which part do you not understand? –  Charles Clarkson Aug 3 '13 at 20:36
    
I'm taking it that I need to read this bit "When Your Domain Name or URLs Change". But there is no wp-posts in my directory –  Kev Hopwood Aug 3 '13 at 20:40
    
You misread that option. It is for searching a database table named wp_posts. It is not a directory. If you are unfamiliar with querying a database, use option 2. I think there is a plugin to do search and replace, but you need to know Perl regular expressions to use it. –  Charles Clarkson Aug 3 '13 at 20:43
add comment

1 Answer

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.

share|improve this answer
    
Thanks. I will try it. –  Kev Hopwood Aug 4 '13 at 6:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.