URL alias 自定义URL
[原创]

URL alias 自定义URL

分类:功能增强
版本:1.00.05
下载:924
获星:0
创建时间:2020-06-24
最后更新:2021-11-17
免费
请到后台应用商店下载 / Please go to the background app store to download

URL alias / 自定义URL,为目录化伪静态自定义别名插件,支持英文、数字、下划线。可对频道、列表和详情页进行目录别名化设置。后台单独设置每个版块的别名,可为空。conf/conf.php 修改 url_rewrite_on 为2或3,具体请查看官方使用手册-伪静态。/ Pseudo-static directory alias, support English, numbers, underscores. You can set directory aliases for channels, lists, and detail pages. The alias of each category is set separately in the background, which can be empty. conf/conf.php modify url_rewrite_on to 2 or 3, please check the official manual pseudo-static for details.

 

如果部分URL未被格式化,请升级到最新版2.0.06,然后修改模板。

以下4个htm文件 url('read-'.$thread['tid']) 替换成了统一格式化URL,自制模板需参照官方模板手动修改。

view/htm/comment.htm
view/htm/comment_list.inc.htm
view/htm/home_comment.htm
view/htm/read.htm

 

支持列表、频道分类、单页、详情页路径自定义;

列表和频道:/xxx/list_1.html

单页和详情:/xxx/1.html

 

需要设置 conf/conf.php 修改为 2 或 3 ,之后添加伪静态规则,后台清空缓存。

伪静态:rewrite ^((.*)/) /index.php last;

'url_rewrite_on' => 2,

 

2020.10.28

限制跨别名访问详情页;

 

2020.08.10

修复别名翻页下划线加 % 问题;

 

2020.07.18

频道、单页去掉 list_1

 

2020.07.05

替换新版钩子,主程序需要新版本 2.0.07

 

后台设置每个栏目的别名,清空缓存即可。

0
最新回复(0)