在Digital Ocean中托管了一个 Codeigniter 应用程序。登录后出现404错误。$config["base_url"] = "http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["SCRIPT_NAME"]);$config["index_page"] = "index.php";$config["uri_protocol"] = "REQUEST_URI";和 htacess 代码是<IfModule mod_rewrite.c>RewriteEngine On#RewriteCond %{REQUEST_FILENAME} !-f#RewriteCond %{REQUEST_FILENAME} !-d#RewriteRule ^(.*)$ index.php/$1 [L]RewriteCond $1 !^(index\.php|public|\.txt)RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d#RewriteRule ^(.*)$ index.php?$1RewriteRule ^(.*)$ index.php?/$1 [L,QSA]</IfModule>
添加回答
举报
0/150
提交
取消