已修复:Xiuno异常路由问题

https://assbbs.com/index.php/hostloc/thread-33070.htm

这类链接已经干扰论坛收录多时了。

直接在 index.php 第一行后插入:

if(stripos($_SERVER['REQUEST_URI'],'/index.php')===0){header('Location:'.strrchr($_SERVER['REQUEST_URI'],'/'),true,301);}

(仅适用于论坛建立于根目录的情况,二级目录有解决方案但我懒得搞)

C

提示:preg_match('/^\/index\.php(.*)\.htm/', $_SERVER['REQUEST_URI'])

Tillreetree: 提示:preg_match('/^\/index\.php(.*)\.htm/', $_SERVER['REQUEST_URI'])
Tillreetree 提示:preg_match('/^\/index\.php(.*)\.htm/', $_SERVER['REQUEST_URI'])

路由层尽量别用正则表达式……

C
Tillreetree: 提示:preg_match('/^\/index\.php(.*)\.htm/', $_SERVER['REQUEST_URI'])
Tillreetree 提示:preg_match('/^\/index\.php(.*)\.htm/', $_SERVER['REQUEST_URI'])

修好了

C

感谢

收藏了

真好

收藏了