In the process of building a website, I have always paid great attention to the details of the website. A few days ago, I saw some friends in the forum asking how to optimize the URL. It just so happened that when I was building the website, I paid great attention to the details in this area and made a lot of relevant summaries. , today I will talk to you about how to optimize URLs.
URL optimization is different from URL normalization. These are two completely different concepts. URL normalization refers more to the issue of URL settings, while URL optimization focuses on the format of the URL. Today I will summarize with you from the following aspects. I hope everyone can gain something from reading this article. Corrections are also welcome.
It is best to be descriptive: Where possible, the entire URL, including domain name, directory name, and file name, should have descriptive words. If the domain name has special circumstances, then at least the directory name and file name should be set to be descriptive, so that users can roughly understand the represented content.
The domain name should not be too long: The domain name is the most important part of the URL. When someone visits your website, whether it is the home page or the inner page, it will contain the URL. Originally, the URL has a certain length. If you add your long domain name, it will It's even harder to confirm. Therefore, the domain name should not be too long and should be based on the brand name rather than keywords.
The file name contains keywords: It is not absolute that the file name contains keywords, but if possible, it is best to do so. If our website structure is very complex, it must be clearly classified. If keywords are used, it will affect the overall situation. . However, the directory name is not used, but the file name can be used.
Don’t make the table of contents too deep: Too deep a table of contents will have a certain impact on the collection, because the link positions on the homepage are certain and it is impossible for all links to be directly linked to the inner pages, so the collection will encounter problems. At the same time, users will have a bad impression when they see a long URL when clicking.
Use hyphens with caution: Many URLs use the hyphen "-" or the underscore "_", which looks a bit unprofessional and has a certain impact on the user experience. For search engines, hyphens will also be used. Treated as spaces. In addition to these two symbols, try not to use other strange characters, as they will be treated as spaces by search engines.
Pinyin and English: For English URLs, it is better to use English, preferably with keywords. For Chinese websites, you can consider incorporating Pinyin into them. However, most file names and directory names are still named in English. But try not to use Chinese, otherwise it will turn into some encoded strings in the address bar, which is ugly.
URL staticization: When it comes to URL optimization, we have to mention URL staticization. This is almost necessary. Many websites have adopted this method. Whether it is true static or pseudo-static, its advantages are higher than dynamic. If you have the conditions to implement pseudo-static, then go for it. Don’t always think that dynamic content can also be included well.
Case issues: There is an unwritten rule that it is best to use lowercase in URLs. Some servers judge case differently. For example, Linux and Unix distinguish between uppercase and lowercase, while win systems generally do not distinguish between uppercase and lowercase. However, To avoid errors, it is better to use lowercase letters. In addition, lowercase is also the most acceptable.
Okay, that’s it for this article. I will continue to communicate with you in the future.
This article comes from Beijing SEO, website: http://www.seostudy.org/494.html . Reprinting is also welcome. Please keep the link for reprinting. Thank you!
Thanks to Beijing SEO for your contribution