WordPress.org

Ready to get started?Download WordPress

Forums

Change Domain name (5 posts)

  1. peterbryers
    Member
    Posted 1 year ago #

    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.

  2. Himanshu Parashar
    Member
    Posted 1 year ago #

    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 :)

  3. Himanshu Parashar
    Member
    Posted 1 year ago #

    let me know if you require more help.

  4. peterbryers
    Member
    Posted 1 year ago #

    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

  5. peterbryers
    Member
    Posted 1 year ago #

    Great now it wont let me login

Topic Closed

This topic has been closed to new replies.

About this Topic