HTTPS and domain-specific redirect
-
I have a https://www.domain.com
I need this domain to ALWAYS:
1) forward to HTTPS://
2) forward to domain.comI only have my certificate for “domain.com”, so i need everything re-rerouted to https://domain.com
I have tried this:
Setting both URLs for wordpress to https://domain.com, and I have tried using this htaccess code:RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www.domain.com [NC] RewriteRule ^(.*)$ https://domain.com/$1 [L,R=301] RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
I keep getting a redirect loop.
- The topic ‘HTTPS and domain-specific redirect’ is closed to new replies.