Activity Stream
48,167 MEMBERS
61964 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 3 of 3
  1.     
    #1
    Member
    Website's:
    fileservedownload.net

    Default how change domain in wordpress 3.3.1?

    hello i must change domain in my blog...

    how can i do without lose (search) in google??


    thanks
    ciaociao4 Reviewed by ciaociao4 on . how change domain in wordpress 3.3.1? hello i must change domain in my blog... how can i do without lose (search) in google?? thanks Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    can you show the scenario as how the changes needs to takes place so that the suggestions can be done.

  4.     
    #3
    Member
    Website's:
    oneddl.eu nfomation.net linksafe.me
    1. Run the sql commands below to update your database.

    Change site and home URL
    Code: 
    UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldsite.com', 'http://www.newsite.com') WHERE option_name = 'home' OR option_name = 'siteurl';
    Change GUID
    Code: 
    UPDATE wp_posts SET guid = REPLACE (guid, 'http://www.oldsite.com', 'http://www.newsite.com');
    Change URL in post content
    Code: 
    UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://www.oldsite********', 'http://www.newsite********');
    Update post meta
    Code: 
    UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://www.oldsite.com','http://www.newsite.com');
    Those should cover most things. There may be other queries you need to run or manually change in WordPress for things like widgets.

    2. Setup a 301 permanent redirect on your webserver

    It is pretty simple on nginx. Just add the following to your vhost.

    Code: 
    server {
        server_name  oldsite.com www.oldsite.com; 
        rewrite ^(.*) http://www.newsite.com$1 permanent;
    }
    There is similar code for Apache that you add to your .htaccess file, but I can't be bothered to look it up.

    3. Notify Google of the URL change

    Login to Google Webmaster Tools and, if you haven't already, register and verify your old website. Do the same for your new website.*

    Then select the option in the control panel and tell Google which domain to change too (it can take 180 days for the process to complete).

    *You may need to do this for yourdomain.com and www.yourdomain.com

    4. Sit back and relax

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. change measures wordpress widget?
    By cca1690 in forum Wordpress
    Replies: 1
    Last Post: 12th Jun 2012, 03:04 PM
  2. How to change width of wordpress theme
    By torrfriend in forum Technical Help Desk Support
    Replies: 3
    Last Post: 28th Oct 2011, 07:00 PM
  3. How Can I Change URL Links In Wordpress ??
    By Damaxi in forum Wordpress
    Replies: 7
    Last Post: 27th Aug 2011, 09:47 AM
  4. Wordpress Experts - Theme Change
    By viruz99 in forum Webmaster Discussion
    Replies: 2
    Last Post: 19th Aug 2011, 03:28 PM
  5. Wordpress Categories - Change in look
    By kiddo in forum Webmaster Discussion
    Replies: 7
    Last Post: 11th Jan 2011, 08:58 PM

Tags for this Thread

BE SOCIAL