Home given subdomains to http and other sub domains and domain to https by htaccess
Reply: 0

given subdomains to http and other sub domains and domain to https by htaccess

Thamira Wijesinghe
1#
Thamira Wijesinghe Published in 2017-12-06 18:03:17Z

How to write given subdomains to http and other sub domains and domain to https by htaccess?

RewriteCond %{HTTP_HOST} ^ru.example.com$
RewriteRule ^(.*) http://www.ru.example.com/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^(.*) https://www.example.com/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^\.example.com$
RewriteRule ^(.*) https://www.example.com/$1 [QSA,L,R=301]
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.262986 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO