【发布时间】:2015-10-24 13:21:47
【问题描述】:
我注意到很多关于这个问题的问题,但就我而言,htaccess 非常简单:
<IfModule mod_rewrite.c>
RewriteEngine on
#somecomment
RewriteBase /restAPI/
#continue if condition is true:
RewriteCond %{REQUEST_FILENAME} !-f # somecomment
RewriteCond %{REQUEST_FILENAME} !-d # somecomment
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
#somecomment
#somecomment
</IfModule>
现在大约 4-5 周我对那个 rewritebase 没有问题,但现在我无法启动我的简单 RestAPI:/
任何建议为什么这不起作用?
【问题讨论】:
-
尝试删除“somecomment”和 rewritecond 行的结尾?
-
太棒了!不敢相信,但问题就在这里 - # somecomment at 8 和 9 行。