htaccess重写https删除安全前缀

时间:2012-09-07 14:35:59

标签: .htaccess mod-rewrite

1 个答案:

答案 0 :(得分:0)

是的,可以尝试这个(确保启用了mod_rewrite):

RewriteEngine on
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^secure25\.securewebsession\.com$
RewriteRule ^(www\.)?domain\.co\.uk(.*)$ http://www.domain.co.uk$2 [L,QSA,R=301]