蓝忧无泪 发表于 2014-10-20 04:43:41

PHPnow默认设置了www域名301跳转

相关控制代码:

PHPnow\Apache-20\conf\httpd.conf
<Directory "./manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all

    <Files *.html>
      SetHandler type-map
    </Files>

    SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
    RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>
页: [1]
查看完整版本: PHPnow默认设置了www域名301跳转