在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
提交
取消