我對服務器配置感興趣。 我有一個Codeigniter應用程序,當我將它託管在共享服務器上時,它運行得非常好。現在我試圖在自己的服務器上託管它,我做了所有必需的更改,並且該站點的index.html
文件正常運行。但現在它給我一個錯誤:在此服務器上未找到請求的URL /客戶端/登錄名。 Codeigniter應用程序出現錯誤
Not Found
The requested URL /clients/login was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
這裏是我的.htaccess
文件:
RewriteEngine on
RewriteBase/
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /home.php?/$1 [L,QSA]
AddDefaultCharset utf-8
我沒有得到什麼是配置錯誤。我已經提到以下站點:
laravel the requested url was not found on this server
How to enable mod_rewrite for Apache 2.2
The requested URL /login was not found on this server
Codeigniter - the requested URL was not found on this server
任何形式的幫助是值得歡迎的。提前致謝。
我認爲這將幫助你[https://stackoverflow.com/questions/15492446/codeigniter-2-the-requested-url-was-not-found-此服務器上-404-錯誤-Cl-是?answertab =票#製表頂部](https://stackoverflow.com/questions/15492446/codeigniter-2-the-requested-url-was-not-found -on-this-server-404-error-ci-is?answertab = votes#tab-top) – krishnaraj
@krishnaraj我也做過類似的更改,但也發生了相同的錯誤。 –