Believe that a lot of webmaster friends have such problems appear. That is, the domain name with the WWW prefix and the top-level domain name without the WWW prefix are different. This problem is mainly due to the search engine for the top-level domain name and two-level domain name weight difference caused.There is no doubt that the only domain name can bring you more benefits. Whether it is with the WWW or not with www. Because, so whether the user or search engine will remember your site's un
So all use Linux host, I will define a 301 redirect to facilitate SEO. Yesterday, as usual htaccess uploaded to the server, did not expect to post the site can not be accessed, a delete will return to normal. Read a lot of code, also did not find any problems. Simply re-learn the URL rewrite method.Normalize URLsDescribe:On some Web servers, a resource can have more than one URL. Standard URLs should be use
LNMP Nginx If you want to redirect domain name 111cn.net 301 to Www.111cn.net, and Www.111cn.net has been added through Lnmp vhost Add,
You can modify the following steps.
Edit the corresponding virtual host configuration file, the general virtual host configuration file is located in:/usr/local/nginx/conf/vhost/domain name. conf, such as the added domain name is www.111cn.net
The configuration file is/u
engine bounce rateBounce Rate: Users come to your site and only browse a page to leave the percentage.Thinking: What are the impact on site rankings? The principle of fast-line technology.3 , where is the site navigation? What role does it have? Example:http://www.wycszx.com/ Hefei registered company Hefei Company Registration Hefei Company in Hefei Agent Company Registration Promotion keyword Density blend usehttp://www.tuniu.com/ Weight 7 The category page promotes weights.Thinking: How to
Demand:If you do not have this URL locally rewrite to another server to request;Realize:server {listen 8080;if (!-e $request _filename) {rewrite ^/(. *) $http://192.168.2.42/$ permanent;}}DescriptionWhen there is no such resource on the local web, jump to the 192.168.2.42 server to request;This article is from the "Shine_forever blog" blog, make sure to keep this source http://shineforever.blog.51cto.com/1429204/1619796Use Nginx 301
The use of 301 redirect can be without the WWW domain name to the WWW domain name, so that the weight can be all pointed to the domain name with www, the site optimization is very helpful.
http://www. " server_name Else Response.AddHeader "Location", "http://www." server_namepath_infostrquery_stringstr End If Response.End End If%>
Friends who use ASP.net and follow the new technology may already know that the Response.redirectpermanent () method has been added in ASP.net 4.0 to achieve permanent redirection, and the effect of the method is clearly explained in the annotation: execution from the requested URL to the specified A permanent redirection of URLs and provides options for completing the response.
In the ASP.net MVC 3 project, we can use the following notation to implement permanent redirection as needed:
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.