Hi .htacsess drive me nuts, help! Im trying to redirect HTTP://DOMAIN.COM to HTTP://WWW.DOMAIN.COM because the ssl certificate is to the site WWW.DOMAIN.COM and not DOMAIN.COM. I do the following, htaccess file: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} Then when I type domain.com (without www)on the navigation bar of the browser, it redirect me to https://www.domain.com (with www. and ssl) it works, good. BUT when I type www.domain.com (with www) on the navigation bar of the browser, it redirect me to https://www.www.domain.com (twice www) ideas, solutions, tips or a cold glass water are welcome Thanks i advance
Here is the solution I have: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://www.YOURDOMAIN.com%{REQUEST_URI} Code (markup):