Forum Moderators: phranque
RewriteEngine On
RewriteCond %{HTTP_HOST} ^addon\\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.addon.com/$1 [R,L] !example\.addon when it redirects my addon domain from http to https it does not mask the main domain urlI’m not sure what you mean by “mask” in this context.
Where is the other canonicalization redirect--the one that redirects http://example.main to https://example.main ?
I’m not sure what you mean by “mask” in this context.
RewriteCond %{HTTP_HOST} ^addon\\.com [NC]
I meant that although my addon site files are located in subfolder of main domain, the browser should not show the main domain url. In other words, when a browser opens addon site, in address bar I should read just addon .com rather than main .com/addon