Z-blogPHP turns on pseudo-static and understands the configuration label of the URL

如果你希望可以自定义《静态管理插件》pseudo-static的URL配置,不使用《静态管理插件》自带的URL配置选项,那么就需要能看懂URL配置的调用标签。


1. Article URL configuration

label作用
{%host%}website address
{%category%}Alias for the category to which the article belongs
{%id%}文章id
{%alias%}文章别名
{%year%}文章发布的时间(年)
{%month%}文章发布的时间(月)

2. Page URL configuration

label作用
{%host%}website address
{%id%}页面id
{%alias%}page alias

3. URL configuration of the home page

label作用
{%host%}website address
{%page%}首页列表页翻页

4. URL configuration of classification page

label作用
{%host%}website address
{%id%}分类id
{%page%}分类列表页翻页
{%alias%}分类别名

5. URL configuration for tab pages

label作用
{%host%}website address
{%id%}标签id
{%page%}标签列表页翻页
{%alias%}标签别名

6. URL configuration for date page

labelrole
{%host%}website address
{%date%}日期
{%page%}日期列表页翻页

7. URL configuration for author page

labelrole
{%host%}website address
{%id%}作者id(用户id)
{%alias%}作者别名
{%page%}作者列表页翻页

最后,既然知道了URL配置标签的作用,再参考配置页面预设的URL配置选项,你就可以根据自己的需要自定义URL配置了。


如下图所示:文章和分类的URL配置就是自定义的

image.png

t like3

Link to this article:https://en.finchui.com/zblog-course/23.html

netizens commented

guess you like

hot commodity
popular articles
hot Tags
related tags
FinchUI Store Edition Hong Kong Special Area

share

copy Link

Xinglan Studioadd friends

Working hours: 9:00-22:00
Saturday and Sunday: 14:00-22:00
wechat
Scan the code to add customer service WeChat