嘿guyz我是Yii框架中的新手.我想从我的网址中删除index.php.在yii文档之后,当我将重写引擎代码放入我的.htaccess文件并在我的config/main.php文件中将showScriptName设置为false时,我得到500内部服务器错误.我的.htaccess文件位于我的应用程序的根文件夹中.告诉我我在哪里做错了
更新:
这是我的.htaccess文件中的代码:
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
Run Code Online (Sandbox Code Playgroud)