Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 htaccess 重写
https://secure25.securewebsession.com/domain.co.uk/wordpress
到http://www.domain.co.uk/wordpress
这可能吗?
是的,有可能,试试这个(确保 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]