One of the rules of SEO: Setting the right URL structure

Source: Internet
Author: User

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

In the author to do SEO consultancy services, often encountered 5 basic SEO problems, the most common one common problem is the URL of the structure level problem. Then I taught him some basic knowledge of how to do the right URL, let him know what is the main problem, and how to solve it.

Web site Normalization

Although this sounds like a wide range of SEO terminology, but it is not difficult to understand. It means that the URL will be standardized to require you to use a Web site and is only the most appropriate one to correspond to a page. For example, if the site has a similar content but the URL is different from several pages, the search engine will be judged from the URL to a different number of pages, the result will be thought to be the site appears a duplicate content page. The URL case looks like this:

Example.com/page

Www.example.com/page

example.com/page/

www.example.com/page/

Example.com/page/index.html

Www.example.com/page/index.html

The above URLs depend on how you use them to link to the site, or how to use the WHO as an external link to link to the page. If the above 6 URLs or more URLs can be replaced with only one URL, then the search engine is easy to determine the uniqueness of the URL.

You can solve this problem with the rel=canonical meta tag, but this is actually a Band Aid program. If 99% of people link to a version of URL mismatch spec tags, search engines will ignore your tag-supported links.

The best way to solve this problem is to turn 301 and set changes on the server side. You can bring the 301 to the www without the WWW, or vice versa, and do not use/index.html links to link and outbound links.

Transfer, change, and turn to URL URLs

If your site is long enough (at least 1 years or more), but for one reason or another, you will have to change the URL. When you do this, the best way to use 301 redirects from the old to the new URLs to ensure that the traffic does not drain. Use webmaster tools to see if 301 turns are complete. As shown in

  

How to do the 301 turn please see the following specific steps: There are several methods available for your reference:

1. Add 301 redirect instructions in the. htaccess file

The use of "mod_rewrite" technology, in the form of:

Rewriteengine on

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

2. For users who use UNIX network servers

Notify search engine via this instruction spider your site file is not under this address. This is a more common approach.

Form: Redirect 301/http://www.admin5.com/

3. Complete the 301 redirect in the system administrator configuration area of the server software

For users who use the window network server

4. Bind/Local DNS

If you have permission to edit the local DNS records, you can resolve the problem by simply adding a record. If you do not have this permission, you can require the Web site hosting service to set up the DNS server accordingly.

DNS Server settings

To point blog.admin5.com to www.admin5.com, you only need to add an alias record in the DNS service, which can be written as: BBS in CNAME www.admin5.com.

If you need to configure a large number of virtual domain names, you can write: * in CNAME www.admin5.com.

This redirects all admin5.com records that have not been set to the end of the www.admin5.com.

5. Implement 301 redirects with asp/php:

ASP:

Response.status= "Moved Permanently"

Response.AddHeader "Location", "http://www.admin5.com/"

Response.End

PHP:

Header ("http/1.1 moved Permanently");

Header ("location:http://www.admin5.com/");

Exit ();

Friendship Tip: This article by Embellish Ming SEO provides, A5 submission, reprint please indicate the copyright www.runmingseo.com and the source www.admin5.com

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.