Wordpress fixed link setting parameters
Let's take a look at the list of official WordPress documents as follows:
1.% year %
Based on the publishing year of the article, for example, 2222
2.% monthnum %
Based on the published month of the article, for example, February
3.% day %
Based on the published date of the article, for example, 22nd
4.% hour %
Based on article publishing hours, for example, 22 hours
5.% minute %
Based on the number of articles published in minutes, for example: 22 minutes
6.% second %
Post-based release seconds, for example, 33 seconds
7.% postname %
The Post name is the title of the article when the specified scale-down name is not specified.
8.% post_id %
Based on post _id such as 423
9.% category %
The sub-category based on the document category will be processed into the form of "Category/Sub-category"
10.% author %
Based on the author's name.
Combine the above parameters to get the fixed link form of wordpress. Several common setting methods on the Internet
| The code is as follows: |
Copy code |
/% Year %/% monthnum %/% day %/% postname %/ /% Year %/% monthnum %/% postname %/ /% Year %/% monthnum %/% day %/invalid postname).html /% Year %/% monthnum %/invalid postname).html /% Category %/your postnameapps.html /Configure postnameapps.html /Configure post_id1_.html (this is the case if you use less than one year) |
Wp link setting skills
1. Do not make the date appear in the wordpress fixed link
This is based on two considerations.
First, if the number appears in a fixed link, it is equivalent to reminding seo/seo.html "target =" _ blank "> The search engine is old and there is no need to crawl it again.
Another reason is that if you want to modify the date of the article and re-release it, the link address will change, that is, your reverse link PR will be lost.
2. Do not include Classification links in fixed links
This is something that many people will ignore. The classification has two defects in the fixed link:
First, if multiple categories are selected for an article, multiple link addresses will appear, which may cause repeated content to be punished by the search engine.
Second, keywords may be piled up and punished by search engines.
3. The link should not be too deep
This is often seen. The fixed links of many wordpress users are year/month/day/category name/article name. This too deep fixed link is very unfriendly to search engines. The spider may just crawl two or three layers and leave.
4. Do not include Chinese characters in fixed links
Although the current search engine can recognize Chinese characters in the URL address, it is very poor both in appearance and in terms of wordpress optimization. We recommend that you set an alias in English or pinyin.
Set WordPress fixed link pseudo-static under Windows Server
As long as the host supports customizing the 404 page, you do not need to install plug-ins to make Windows host as easy to use as Linux.
The fixed link of WordPress is static.
| The code is as follows: |
Copy code |
<? Php $ Qs = $ _ SERVER ['query _ string']; $ _ SERVER ['request _ URI '] = substr ($ qs, strpos ($ qs,': 80 & prime;) + 3 ); $ _ SERVER ['path _ info'] = $ _ SERVER ['request _ URI ']; Include ('index. Php '); ?> |
Step for setting a fixed link Permalink pseudo-static
1. Save the above code as 404. php and upload it to the root directory of the host.
2. Set the 404 custom error page to 404.php.
3. Go to the WordPress control panel and set Options-WordPress fixed link Permalinks. Select the fixed link format.
Do you understand? In fact, the wordpress pseudo-static settings are very simple, especially for the liunx system, the Windows system settings may be a bit complicated, but it is good to study more. The younger ones are liunx, so win has not been tested, if something is wrong, you can point it out and let me learn more.