1
请求我的网站像/ profile,/ profile /,/ market(有或没有最终斜杠)和/ api /任何资源都很好,但是当我尝试请求/ api斜杠)我得到301永久移动和重定向到/ api /?_ url = api/api。/profile和/ api之间的区别Apache以及如何解决此重定向?Apache的/ api请求上的奇怪行为
我的.htaccess看起来是这样的:
RewriteEngine on
RewriteCond %{REQUEST_URI} !\.(css|js|png|jpeg|jpg|svg)$
RewriteRule ^(.*)$ controller.php?_url=$1 [QSA,L]
我使用Apache 2.2.27