- Joined
- Jan 10, 2008
- Posts
- 4,053
- Reaction score
- 753
I've set the following htaccess redirects to cover off all instances of non-https, as well as any potential 404 errors, but I want all traffic to go to www. if the url is typed without. Can someone help!
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
ErrorDocument 404 https://MYURL
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
ErrorDocument 404 https://MYURL