我已經嘗試了不少答案,但不斷提出反對好恐怖404牆。我在Windows 7上使用xamp堆棧。 mod_rewrite已啓用。從xign中的codeigniter刪除index.php
我把htaccess文件放在主「codeigniter」目錄下,即帶有application,system和user_guide的目錄。我應該把它放在應用程序目錄下嗎?有views/model/config/etc的那個?
這是我目前的.htaccess文件:
RewriteEngine On
# Put your installation directory here:
# If your URL is www.example.com/, use/
# If your URL is www.example.com/site_folder/, use /site_folder/
RewriteBase /website/codeigniter/
# Do not enable rewriting for files or directories that exist
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# For reuests that are not actual files or directories,
# Rewrite to index.php/URL
RewriteRule .* index.php/$0 [PT]
訪問http://localhost/website/codeigniter/index.php/welcome工作 訪問http://localhost/website/codeigniter/welcome不
我的config.php有
$config['base_url'] = 'http://localhost/website/codeigniter/';
$config['index_page'] = '';
任何幫助,不勝感激!
的錯誤是:
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
Error 404
UPDATE 哦,就是想尋找在Apache日誌,收到此錯誤:
[Thu Mar 08 18:28:25 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/website/codeigniter/welcome
所以它似乎不被拿起正確codeigniter重定向?不確定?
剛剛試了一下,沒有變化 – Organiccat 2012-03-08 17:28:05