我认为我的问题是在升级apache之后出现的。所以这是我的.htaccess
Options +Indexes +FollowSymLinks -MultiViews
RewriteEngine On
RewriteRule ([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule ([\d]+)-.+.html showthread.php?t=$1 [NC,L]
RewriteBase /
RewriteRule ^subdomains/.* - [L]
RewriteCond %{HTTP_HOST} !www\.foo\.com
RewriteRule ^$ subdomains/ [L,R=301]
RewriteCond %{HTTP_HOST} !^www.foo.com$ [NC]
RewriteRule ^(.*) http://www.foo.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
服务器版本:Apache / 2.2.16(Debian) 服务器内置:2014年2月1日21:22:42 服务器模块幻数:20051115:24 服务器已加载:APR 1.4.2,APR-Util 1.3.9