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

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members