2
我有mod_rewrite問題。一個完整的解釋,加上原木低於:mod_rewrite幫助
############################################################
Options +FollowSymLinks -MultiViews -Indexes
RewriteEngine on
RewriteBase /managedDir
RewriteRule login/client/$ /managedDir/index.php?user= [L]
RewriteRule login/(.*)/admin-lostpassword/$ /managedDir/admin/content/admin-lostpassword.php [L]
RewriteRule login/(.*)/$ /managedDir/index.php?user=$1 [L]
RewriteRule user.(.*)/page/(.*)/$ /managedDir/index.php?user=$1&page=$2
############################################################
我目前有很多的麻煩登錄到 http://localhost/managedDir/login/client/但我可以登錄到: http://localhost/managedDir/login/admin/
這裏是error.log中:
[Sat May 28 16:57:13 2011] [error] [client 127.0.0.1] PHP Notice: Undefined index: user in C:\\xampp\\htdocs\\MDFramework\\index.php on line 133, referer: /managedDir/login/client/
[Sat May 28 16:57:13 2011] [error] [client 127.0.0.1] PHP Stack trace:, referer: /managedDir/login/client/
[Sat May 28 16:57:13 2011] [error] [client 127.0.0.1] PHP 1. {main}() C:\\xampp\\htdocs\\MDFramework\\index.php:0, referer: /managedDir/login/client/
[Sat May 28 16:57:14 2011] [error] an unknown filter was not added: DEFLATE
這裏是的access.log:
127.0.0.1 - admin [28/May/2011:16:57:13 -0500] "POST /managedDir/ HTTP/1.1" 302 26661 "/managedDir/login/client/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1"
127.0.0.1 - admin [28/May/2011:16:57:14 -0500] "GET /managedDir/user.client/page/home/ HTTP/1.1" 200 4 "/managedDir/login/client/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1"
當我登錄到/ login/admin /時,它正確加載了頁面並登錄。但是當我登錄到/ login/client /時,它給了我一個空白頁面。
我該如何解決這個問題?