ssl certificate www apache (modrewrite) ev
modrewrite simply hoop stripping www off front domain.
in .htaccess:
rewriteengine on
rewritecond %{https} on
rewritecond %{http_host} ^www\.(.+)$ [nc]
rewriterule ^(.*)$ https://%1/$1 [r=301,l]
rewritecond %{https} off
rewritecond %{http_host} ^www\.(.+)$ [nc]
rewriterule ^(.*)$ http://%1/$1 [r=301,l]
but ssl, certificate check comes before .htaccess rewrite, causing certificate error.
i rather buy an ssl certificate www wholly route it.
can offer me smarter solution?
(btw ev certificates accessible wildcards)
Comments
Post a Comment