Today Qin Jian works for a company and is responsible for the SEO optimization of the website of Dongjiang Clinic. When I first took over the website, I found that there was a big problem in the website: copying the mirror site.
The official main website of Dongjiang Clinic has always used the domain name com.cn for resolution, and the official advertising and promotions all use com.cn. Then Dongjiang Clinic decided to use the domain name com, so before I entered the company, the staff also Enable the domain names of com and com.cn, and perform A-resistance resolution at the same time, which is equivalent to "copying the mirror site". "Copying mirror sites" is clearly a cheating method used by search engines. This practice not only disperses the weight of the main domain name, but also affects rankings and even inclusion.
In order to make up for this mistake, I analyzed the specific situation of Dongjiang Clinic’s website:
1. Ranking: Because com.cn is enabled first, the ranking that appears when searching for "Dongjiang Clinic" is com.cn. According to webmaster statistics, in terms of internal pages and long-tail words, com is the main ranking. has rankings but com.cn has no rankings.
2. PR: According to the boss, the PR of the domain name com and com.cn of Dongjiang Clinic were both 4 before the update. This time the PR update of com.cn has no change, while the domain name of com has been reduced to 0. . Personally, I estimate that Google identified the mirror site and then determined that com.cn was the main domain name, so the PR of the com domain name was cleared. Before this, friendly links mainly linked to .com.cn
3. Inclusion: com.cn has only a few hundred domain names included, while com has nearly 2,000 domain names.
In this regard, I decided to use 301 to redirect com.cn of Dongjiang Clinic to com. The PR of com is 0. It is not a big problem to increase it to 5 for a corporate website, so the consideration of PR can be ignored. The main thing is Consider the jump problem after users search for Dongjiang Clinic.
I originally wanted to use URL jump directly, but our great and all-powerful Ministry of Industry and Information Technology won't even provide URL jump. The host itself is an ASP virtual space. I originally wanted to use the asp code to make a judgment and perform a 301 jump. However, the homepage is an html file, and all internal pages are static files, so this plan was cancelled. The code is given, I hope it is useful to everyone.
<%
host=lcase(request.servervariables("HTTP_HOST"))
'Start conditional jump
SELECT CASE host
CASE " www.22222221.com.cn "
Response.Status="301 Moved Permanently"
Response.AddHeader "Location"," http://www.22222221.com/ "
Response.End
CASE "22222221.com.cn"
Response.Status="301 Moved Permanently"
Response.AddHeader "Location"," http://www.22222221.com/ "
Response.End
CASE ELSE
END SELECT
%>
There is a problem with the above code. When jumping, it does not adjust to the homepage. If it jumps to index.html, it is not suitable. A colleague from Dongjiang Clinic said that com.cn should be parsed on another PHP host, and then use .htaccess to perform a 301 jump.
RewriteEngineOn
RewriteCond %{HTTP_HOST} !Old domain name address$ [NC]
RewriteRule ^(.*)$ New website address $1 [L,R=301]
Or create an index.php for 301 jump. The code is:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location:http://www.22222221.com");
exit();
?>
Because when I took over the Dongjiang Clinic website, its weight was not very good. It was troublesome to set up 301 redirects for internal pages, so I just created a 404 page.
Add in .htaccess file: ErrorDocument 404 /404.html
Then create the corresponding 404 page.
I will write this here for the time being, and I will continue to share the later ranking optimization records with you when I have time. My colleagues hope that all friends will join the group 66302955 to discuss it together. My name is Qin Jian. Please give me your advice. Let’s learn and make progress together. SEO needs communication to make progress! ! !
The original address indicates Dongguan SEO ( http://www.pcliver.cn/archives/505.html )