Organize some common ways to write WordPress fixed link URLs

888u

Last update at :2023-12-24,Edit by888u

As WordPress continues to be updated, it has become more and more bloated, and I found that some partners have begun to transform! Without further ado, I took some time to sort out some common ways of writing WordPress fixed link URLs. Specific setting method: After installing the program, go to the background setting "Fixed link" to set it directly. You can choose dynamic or static. For WordPress pseudo-static implementation, the Linux host is the most suitable. It does not require too many settings and only needs to directly define the format of the permanent link in the background.

Wordpress permanent link URL is set to Yes

Type 1 URL example: https://www.thissite.com/1024.html
Set to:/%post_id%.html This is the form currently adopted by this site!

Type 2 URL example: https://www.thissite.com/archives/1024.html
Set to: /archives/%post_id%.html

Type 3 URL example: https://www.thissite.com/2015/08/27/post-name.html
Set to:/%year%/%monthnum%/%day%/%postname%.html

Type 4 URL example: https://www.thissite.com/2015/08/post-name.html
Set to:/%year%/%monthnum%/%postname%.html

Type 5 URL example: https://www.thissite.com/category/post-name.html
Set to: /%category%/%postname%.html

Type 6 URL example: https://www.thissite.com/archives/post-name.html
Set to:/archive/%postname%.html

Type 7 URL example: https://www.thissite.com/post-name.html
Set to: /%postname%.html

The above 7 types are relatively common at present. If they look like this https://www.thissite.com/post_2244.html

The setting should be: post_%post_id%.html

Details the meaning of each symbol

%year% The year the log was released, 4 digits, such as: 2015

%monthnum% The month the log was released, 2 digits, such as: 01

%day% The day of the month when the log is released, 2 digits, such as: 15

%hour% The "hour" in the log publishing time, 2 digits, such as: 18

%minute% The "minute" in the log publishing time, 2 digits, such as: 09

%second% "second" in the log release time, 2 digits, such as: 30

%postname% A string of processed log titles. For example, if the post title is "This Is A Great Post!", then %postname% is expressed as "this-is-a-great-post"

%post_id% unique number of the log

%category% The category where the log is located

%author% log operation

These can be freely combined and used.

For example, /%category%/%post_id%.html, this is /category/article title.html

Recommended site searches: foreign server rental, how to query domain name registration number, Hong Kong server, website registration query, registration cancellation, shopex virtual host, cloud host, overseas domain name registration, Hong Kong server recommendation, virtual host service provider,

Organize some common ways to write WordPress fixed link URLs

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码