【发布时间】:2014-07-14 10:25:19
【问题描述】:
我正在开发 yii 框架并尝试从 url (httpx://localhost:801/index.php/aImages) 中删除 index.php,它应该像这样 httpx://localhost:801/aImages 。所以下面给出的代码在我的 .htaccess 文件中。此代码在我的本地主机上运行,但在我的团队成员机器上运行。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
【问题讨论】:
-
[L]中的RewriteRule . /index.php [L]是什么?