WordPress静态化-永久链接-SEO
发表时间:2010-10-9 评论:2 点击 4,492+
在“自定义结构”中填写永久链接的格式。例如样式:https://log.pub/category/post-name.html
写法: /%category%/%postname%.html其他规则有:
样式:https://log.pub/123.html
写法:/%post_id%.html
样式:https://log.pub/archives/123.html
写法:/archives/%post_id%.html
样式:https://log.pub/2007/09/16/post-name.html
写法:/%year%/%monthnum%/%day%/%postname%.html
样式:https://log.pub/2007/03/post-name.html
写法:/%year%/%monthnum%/%postname%.html
样式:https://log.pub/archives/post-name.html
写法:/archive/%postname%.html
样式:https://log.pub/post-name.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% 日志的作者
正在找这个呢,想把博客链接好好弄一下,修改成静态链接
写得很详细,学习了,谢谢博主哦