my script redirects users type in domain.com, http://domain.com, http://www.domain.com, etc... http://www.domain.com... not work.
when domain.com used url script not redirect correctly https://www.domain.com ... happens lot ie. tried added www response.redirect() add wwwwww.domain.com if user being redirected http://www.domain.com https:// ... idea on how can fix domain variation redirect https://www.domain.com
dim srvname, scrname if request.servervariables("https") = "off" srvname = request.servervariables("server_name") scrname = request.servervariables("script_name") select case srvname case "localhost" 'do nothing case "domain.com" 'do nothing case "www.domain.com" 'do nothing case else response.redirect("https://" & srvname & scrname) end select end if
Comments
Post a Comment