将为静态文件中的
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
改为RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
参考地址:https://www.cnblogs.com/init-007/p/13236152.html
https://blog.csdn.net/Lccee/article/details/79258727
本文介绍如何将网站静态文件的URL重写规则由`RewriteRule`更改为使用`PATH_INFO`变量,以提高性能并简化URL结构,参考了CNblogs和CSDN的技术文章。
将为静态文件中的
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
改为RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
参考地址:https://www.cnblogs.com/init-007/p/13236152.html
https://blog.csdn.net/Lccee/article/details/79258727
1万+
1231
5451

被折叠的 条评论
为什么被折叠?
