Change The Url Of My Wordpress Site

Discussion in 'WordPress' started by E-QueenEve, Jan 26, 2013.

  1. #1
    I created a wordpress on www.sub.domain.com , and I want to change it to be www.domain.com

    How can I do this ?

    Thanks
     
    E-QueenEve, Jan 26, 2013 IP
  2. CMNS

    CMNS Well-Known Member

    Messages:
    95
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #2
    http://codex.wordpress.org/Moving_WordPress
     
    CMNS, Jan 27, 2013 IP
  3. mim24

    mim24 Well-Known Member

    Messages:
    327
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #3
    move the files to root folder. change the site address from database.
     
    mim24, Jan 27, 2013 IP
  4. iMarcus

    iMarcus Active Member

    Messages:
    122
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    #4
    Once you have moved the files to the domains root folder, login to cPanel (presuming your host uses it) and goto phpMyAdmin.

    1. Select the database which corresponds to the site.
    2. Browse to the wp_options table.
    3. Enter the following MySQL command to find all occurrences of your subdomain url:
    SELECT * FROM `wp_options` where `option_value` LIKE '%sub.domain.com/%'
    Code (markup):
    Obviously change sub.domain.com to your actual url...!
    Edit the value field to reflect the new domain.

    See the example screenshot below, where I have selected all fields with "localhost:8888/"

    Screen Shot 2013-01-27 at 20.16.20.png
    (You can use this method to move a local site to a server too!)

    Hope this helps!
    Mark.
     
    iMarcus, Jan 27, 2013 IP
  5. E-QueenEve

    E-QueenEve Active Member

    Messages:
    90
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #5
     
    E-QueenEve, Jan 27, 2013 IP
  6. iMarcus

    iMarcus Active Member

    Messages:
    122
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    #6
    Hi there,

    Yes move the folders to the root.
     
    iMarcus, Jan 27, 2013 IP
  7. webmaster.

    webmaster. Active Member

    Messages:
    365
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    68
    #7
    Hi,

    Move all the WP files to sub Folder to Root Folder and edit the DB and change the file settings to the root location.

    Bye
    Webmaster.
     
    webmaster., Jan 28, 2013 IP
  8. iMarcus

    iMarcus Active Member

    Messages:
    122
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    #8
    Did you actually read any of the answers in the thread before posting?
    No thought not..
     
    iMarcus, Jan 28, 2013 IP
  9. E-QueenEve

    E-QueenEve Active Member

    Messages:
    90
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #9
    Thanks webmaster for your sharing :)
     
    E-QueenEve, Feb 4, 2013 IP
  10. ashishkg

    ashishkg Active Member

    Messages:
    233
    Likes Received:
    8
    Best Answers:
    3
    Trophy Points:
    68
    #10
    Need to change the home URL and siteurl from database table that wp_options yuo see the field "home" and "siteurl" change to new one...
     
    ashishkg, Feb 4, 2013 IP