我在 codeigniter 中制作应用程序,现在上传到 GoDaddy 服务器但收到 404 错误。
我的代码是这样的
$config['index_page'] = "index.php?";
$config['uri_protocol'] = "QUERY_STRING";
.htaccess 文件是
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?$1 [L]
我得到了像
http://yourdomain.com/index.php?controller/action/etc
但是我需要
http://yourdomain.com/controller/action/etc
请帮忙。