0

我有一个 Q2A 网站并使用它.htaccess

DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
</IfModule>

现在,当我请求example.com/1/mkdirurl 时,506.shml会为qa-rewrite参数生成。这只发生在 mkdir 上,换句话说,没关系。

4

0 回答 0