- Impact
- 24
Hi,
I need to route all domain traffic to https://www.domain.tld
I'm doing this now with htaccess by redirecting traffic on port 80 and it works pretty well but it does not work when https://domain.tld is entered in the browser.
Here's my current htaccess structure:
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.domain.tld/$1 [L,R=301]
Your input is appreciated!
I need to route all domain traffic to https://www.domain.tld
I'm doing this now with htaccess by redirecting traffic on port 80 and it works pretty well but it does not work when https://domain.tld is entered in the browser.
Here's my current htaccess structure:
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.domain.tld/$1 [L,R=301]
Your input is appreciated!






