2016-01-30 189 views

回答

0

你可以在你的根/的.htaccess使用代码:

RewriteEngine on 


#Redirect "member.mydomain.com" to https 

RewriteCond %{HTTP_HOST} ^members.mydomain.com$ 
RewriteCond %{HTTPS} off 
RewriteRule^https://%{HTTP_HOST}%{REQUEST_URI} [NC,L,R] 
#Remove /yada?subject=1 
RewriteCond %{THE_REQUEST} /topic/yada/\?subject=1 [NC] 
RewriteRule^/topic/? [NC,L,R] 

我使用R“Temp重定向”进行测试并避免浏览器缓存。 当您确定代码正常工作时,将R更改为R = 301。

+0

嗨,谢谢你的回答,我在#END WordPress之后将代码添加到.htaccess中,但没有任何更改。 :( – troy