有没有办法让AddType
命令只适用于某些主机?
具体来说:AddType x-httpd-php54 .php
RewriteRule
对于不同的域有不同的定义有很多问题,你可以这样做,RewriteCond
但是对于非重写相关的东西有没有等价物?
有没有办法让AddType
命令只适用于某些主机?
具体来说:AddType x-httpd-php54 .php
RewriteRule
对于不同的域有不同的定义有很多问题,你可以这样做,RewriteCond
但是对于非重写相关的东西有没有等价物?
您可能可以使用这样T
的标志mod_rewrite
:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)somdomain\. [NC]
RewriteRule \.php$ - [T=application/x-httpd-php54]