Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !^(.*)\.(gif|jpg|jpeg|png|swf|mp4)$ [NC] RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L] #增加如下内容 SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0