I would like to forward all requests to a domain via .htaccess.
Everything to: https://domain.tdl
- No-www
- https
I have tried many spelling, but it has not worked for completely.
I would like to forward all requests to a domain via .htaccess.
Everything to: https://domain.tdl
I have tried many spelling, but it has not worked for completely.
I think the following single set of rule-set should work:
RewriteEngine On
RewriteCond %{HTTPS} off [NC,OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://domain.tld%{REQUEST_URI} [R=301,L]