我正在研究yii框架,並嘗試從url(httpx:// localhost:801/index.php/aImages)中刪除index.php,它應該是這樣的httpx:// localhost:801/aImages。所以下面給出的代碼在我的.htaccess文件中。此代碼在我的本地主機上工作,但不在我的團隊成員機器上工作。如何使用.htaccess從網址中刪除index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
RewriteRule中的[L]是什麼。 /index.php [L]'? – tinybyte
[如何在Yii框架中刪除index.php]的可能重複(http://stackoverflow.com/questions/9633649/how-to-remove-index-php-in-yii-framework) – topher