在本地主機中一切正常,但我有一個問題登錄從其他瀏覽器,如safari和鉻,在Firefox中確定。可能是因爲htaccess或可能是其他。我試了很多搜索,但沒有解決。我的htaccess文件看起來像這樣。codeigniter問題通過IE,Safari,Chrome登錄?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
我的服務器文件夾hirarchy看起來像這樣
public_html
L application
system
css
images
.htaccess
的application/config/config.php文件看起來像這樣
$config['index_page'] = "index.php?";
$config['uri_protocol'] = 'QUERY_STRING';
我已經使用過HMVC。 有幫助嗎?
這些代碼與您的登錄/表單/過程有什麼關係?需要更多的代碼或在這裏...或者你想讓我們猜測? – Jakub 2011-01-05 04:30:00
它在localhost上正常工作。這意味着它可能是htaccess的問題。 – kamal 2011-01-05 04:35:54