链接中包含部分字符 在隐藏入口文件时会报404 错误的解决方案

/search/具 隐藏index.php会报404错误
urlencode结果是%E5%85%B7
共,兵,兹这些都是一样404
结果发现
%E5**%85%**B7
是%85%出了问题
把.htaccess 改为

<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([\s\S]*)$ index.php/$1 [QSA,PT,L]
</IfModule>

猜你喜欢

转载自blog.csdn.net/qq_36899235/article/details/84443694