2017-04-24 119 views

回答

0

希望这会帮助你,因为它是为我工作。

Check this .htaccess code here

RewriteEngine on 
RewriteCond %{HTTP_HOST} ([a-z]+)\.(example\.com) #checking domain and subdomain 
RewriteRule ^(.*)$ https://www.%2/%1 [R=301,L] #redirecting 
相关问题