我在這裏有一個子域,我希望傳遞。subdomain htaccess
here the example of url : http://subdomain.domain.com/login
and it should point to : http://subdomain.domain.com/index.php/login
我寫一個簡單的htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(index\.php|images|robots\.txt|css|javascript)
RewriteRule ^(.*)$ index.php/$1 [L]
,但我總是得到500服務器錯誤。任何機構都有想法,我錯了嗎?
感謝您的幫助
嗨半徑,我感謝您的幫助,錯誤500消失 但我現在得到404頁。 我已經在我的本地嘗試了它,並且工作得很好。但在服務器它來到404頁面。 – 2010-07-01 18:23:22
你可能在別的地方有什麼問題 – radius 2010-07-01 19:11:36