Support » Fixing WordPress » Change Domain name

  • Hi, how would I go about changing from http://www.example.com/wordpress to http://www.example.com I have an existing website created in dreamweaver live now but I have just made a wordpress website (which is not live yet) which is currently /wordpress so clearly I need to delete the existing directories via ftp but I am too worried to do anything else from here, any help would be much appreciated thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Himanshu Parashar

    (@uniquecodergmailcom)

    you need to follow below steps.

    1. You need to move all files from /wordpress to your root directory
    2. in phpmyadmin open your database
    3. Open wp_options tables and change siteurl(option_name) to http://www.example.com and home(option_name) to http://www.example.com
    4. Done 🙂

    Himanshu Parashar

    (@uniquecodergmailcom)

    let me know if you require more help.

    Hello Himanshu. Thanks for your reply, however seeing as i was impatient I read Changing your site url on the wordpress docs and have already done the following:
    1. Changed my root folder destination on my ftp settings from the existing TO /Wordpress
    2. Currently uploading my wordpress folder which is obviously /Wordpress onto FTP
    3. However i have edited the wp-config in notepad to include the following lines.. define(‘WP_HOME’,’http://www.example.com’); define(‘WP_SITEURL’,’http://www.example.com’); example being my domain.

    Will it work that way?
    Thanks

    Great now it wont let me login

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change Domain name’ is closed to new replies.