Replace the wordpress blog domain name with 301 redirects

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Today more busy, their own blog closed one day, after work after the fish hurriedly processed a blog, so far, fish blog successfully replaced the domain name, now replaced by Www.seobye.com, at the same time, lijinlong.cn also with 301 redirect to the www.seobye.com, but in order to facilitate everyone at the same time in order to allow the search engine to the old domain name to transfer the weight to the present seobye.com, the old domain name will also run for several months.

Now the fish to the WordPress blog to replace the domain name method for everyone to say (because the fish only changed the domain name, database and space are not updated):

1, the database through phpMyAdmin export, and then open with Notepad, the inside of all the lijinlong.cn to replace the seobye.com, and then guide the

2, this time seobye.com have been normal can be browsed, but because the old domain name under the previous article has been included in Baidu, so you must let others in search of keywords when the previous link can also find me, for example, said:

Old Address: Http://www.lijinlong.cn/seo

New address: Http://www.seobye.com/seo

This is accomplished by 301 redirects:

That's what I wrote:

# BEGIN WordPress

Options +followsymlinks

Rewriteengine on

Rewritecond%{http_host} ^lijinlong.cn$ [OR]

Rewritecond%{http_host} ^www.lijinlong.cn [NC]

Rewriterule ^ (. *) $ http://www.seobye.com/$1 [l,r=301]

# End WordPress

At this point, the previous connection can automatically go to the new address.

3, to Google Administrator tools to submit their new address.

Follow the Google Administrator tool prompts to update the old address to the new address. Up to now, basically has completed the domain name replacement, will be in accordance with the habits of the past every day to update the article, search engine will soon accept the new site! But the old domain name will remain for two months to three months.

This article is reproduced from the Water Fish Blog: http://www.seobye.com/xinqingrizhi/249

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.