登录到wordpress后台,“设置”→“永久链接”。
在“自定义结构”中填写永久链接的格式。
写法: /%category%/%postname%.html写法:/%post_id%.html写法:/archives/%post_id%.html写法:/%year%/%monthnum%/%day%/%postname%.html写法:/%year%/%monthnum%/%postname%.html样式:http://www.myrui.tk/archives/post-name.html
写法:/archive/%postname%.html写法:/%postname%.html
说明:%year% 日志发布的年,4位数字,如:2004
%monthnum% 日志发布的月份,2位数字,如:05
%day% 日志发布当月的第几天,2位数字,如:28
%hour% 日志发布时间中的“小时”,2位数字,如:15
%minute% 日志发布时间中的“分钟”,2位数字,如:43
%second% 日志发布时间中的“秒”,2位数字,如:33
%postname% 一串处理过的日志标题。如,日志标题为“This Is A Great Post!”,那么%postname%表示为“this-is-a-great-post”
%post_id% 日志的唯一编号
%category% 日志所在的分类
%author% 日志的作者