Home > Topics > SEO > What are the URL specifications?

What are the URL specifications?

little bottle
Release: 2020-09-18 16:41:19
Original
9746 people have browsed it

URL specifications include: 1. All letters are lowercase; 2. The shorter the URL, the better, so that it is easier for users to remember; 3. Avoid too many parameters and try to use static URLs or pseudo-static URLs; 4. Directory There are fewer levels; 5. File and directory names should be descriptive; 6. Include keywords to improve page relevance; 7. Use hyphens.

What are the URL specifications?

URL can be displayed in the search results of search engines. It is best to plan the directory and file naming in advance before making the website structure. When doing SEO, you should also pay attention to user experience. It is best to make the URL clear and easy to remember, and then consider the impact of the URL on rankings.

The following points need to be noted:

1. The shorter the URL, the better

In principle, the URL should not exceed 1,000 letters. It can be included, but if the address is really hundreds of letters, it will be very difficult for users to use it. Therefore, the general recommendation is that the shorter the URL, the better. It is best to make it easier for users to remember the URL.

2. Avoid too many parameters

If there are many kinds of parameters in some forums or search programs, the more parameters there are, the harder it will be for search engine spiders to identify them. And it's easy to fall into spider traps. In this case, it is recommended to use static URLs or make pseudo-static URLs as much as possible.

3. Fewer directory levels

Try to use fewer directory levels. If it is a portal level or large website, if the directory is too deep, it is better to use 2 Level domain names to replace very deep directories.

4. Be descriptive

File and directory names must be descriptive.

5. Contain keywords

Containing keywords in the URL (keyword selection step) can improve the relevance of the page. For example, the directory can be named in Pinyin or English. , the search engine will recognize the English meaning of the directory.

6. All letters should be lowercase

A difference of one character may cause the entire directory not to be included, so it is recommended to use lowercase letters uniformly.

7. Use hyphens

The connections between words generally use hyphens and dashes.

The above is the detailed content of What are the URL specifications?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template