11 lines
370 B
ApacheConf
11 lines
370 B
ApacheConf
<IfModule mod_rewrite.c>
|
|
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
|
|
</IfModule> |