[BlueOnyx:11791] Re: Web Alias Redirects with SSL

Robert Fitzpatrick robert at webtent.org
Wed Dec 12 12:12:45 -05 2012


On 12/12/2012 10:48 AM, Carl E. Hartung wrote:
> - - - - - 8< - - - - -
> RewriteEngine on
> RewriteCond %{HTTP_HOST} !^www.exampledomain.com$
> RewriteRule ^(.*)$ http://www.exampledomain.com/$1 [R=301]
> RewriteEngine On
> RewriteCond %{HTTPS} !=on
> RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
> - - - - - 8< - - - - -

Thanks Carl, all was a big help in getting it to work finally. Now that
I have the redirect working in the .htaccess file, still getting the
browser warning prior to the redirect about the name not matching the
cert. I was hoping that Rewrite would redirect before the warning, that
is what we are trying to accomplish. Do you, or someone here, know a way
to avoid that warning?




More information about the Blueonyx mailing list