Last update at :2024-06-02,Edit by888u
The default link in WordPress is in the form of parameters, which is often called a dynamic link. This kind of link is not very friendly to SEO, so generally we will modify the fixed link format of WordPress and set it to pseudo-static. The difference between pseudo-static and static is that the link looks the same as a static page link, but in fact the page is dynamically generated by the program.
Pseudo-static requires server support, such as the configuration of mod_rewrite module
and pseudo-static rules
. For details, please consult the server administrator. In addition Some servers may not support Chinese links, so please be aware of this.
Setting method
Enter the WordPress backend Settings>Permalink
. The first "Simple" is the default setting, and the following ones are the options given by WordPress. If none of them are the links you like. format, you can also use the last custom structure
.
If you use custom structure
, you need to first understand what parameters can be set. The official WordPress documentation list is as follows:
- %year% is based on the year the article was published, such as 2007;
- %monthnum% is based on the month the article was published, such as 05;
- %day% is based on the day the article was published, such as 28;
- %hour% is based on the hour the article was published, such as 15;
- %minute% is based on the minute the article was published, such as 43;
- %second% is based on the number of seconds the article was published, such as 33;
- %postname% is based on the postname of the article. Its value is the abbreviation specified when writing. If the abbreviation is not specified, it is the article title;
- %post_id% is based on the article post_id, such as 423;
- %category% is based on article classification, and subcategories will be processed in the form of "category/subcategory";
- %author% is based on the article author name.
By combining the above parameters, you can get the fixed link form of WordPress.
Several common setting methods on the Internet:
- /%year%/%monthnum%/%day%/%postname%/
- /%year%/%monthnum%/%postname%/
- /%year%/%monthnum%/%day%/%postname%.html
- /%year%/%monthnum%/%postname%.html
- /%category%/%postname%.html
- /%category%/%post_id%
- /%postname%.html
- /%post_id%.html
We generally use /%postname%.html
or /%post_id%.html
.
After setting up, save to complete the settings of fixed links and pseudo-static.
Recommended site searches: free overseas servers, Wanwang domain name registration, forum registration, mainland China space, website registration price, cn domain name registration, personal free space, telecommunications server rental, IP viewing, website IP address query
发表评论