更新时间:2021-12-29 00:58:38
您重定向到 $ 1
在这两种情况下,你没有RewriteBase指令,告诉阿帕奇哪里根这样的相对路径。
You are redirecting to $1
in both cases, and you don't have a RewriteBase directive to tell Apache where to root such a relative path.
先试的$ 1把一根斜线把它固定到Web服务器的根目录下,例如:
Try adding a root slash before the $1 to anchor it to the root of your webserver, for instance:
RewriteRule ^(.*)$ /$1.php [L]