我遇到了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 /时,它会给我一个空白页面。
我该如何解决这个问题?
答案 0 :(得分:0)
问题可能是:
[Sat May 28 16:57:14 2011] [error] an unknown filter was not added: DEFLATE
不要添加DEFLATE标头,因为您的网络服务器不理解它?
可能相关:http://www.divideandconquer.se/2008/02/27/an-unknown-filter-was-not-added-deflate/