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

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

how i emanate permitted url asp.net mvc?