fmbma
Posts: 58
|
Posted: 10/13/2004, 4:56 PM |
|
I'm working with vb.net in ccs 2.3.2.24. I'm changing over a site to ssl. Everything is working, except I want the site to convert the url to https if the user does not. I thought that on the login page, I could set the "Convert URL" property to ssl, the site would do it automatically, but i still get the "This page can be accessed only via secured connection." error if the user simply types "www.mysite.com". Is there something else I need to do?
thanks,
Fred
|
|
|
peterr
Posts: 5971
|
Posted: 10/14/2004, 12:24 AM |
|
Fred,
If you look at the comments for this propetrty you will see that it applies only to the "Access Denied" page, which you can specify in the "Access Denied Page" property above. Thus the "Convert URL" property is for you - the developer, to specify that you will be using https:// and therefore the "Access Denied" page will be at an http:// address, if users are not allowed to access the current page.
Redirecting URLs is something that you'd have to implement, either via some .NET code, JavaScript, or maybe some server configuration. Find more information on Google: http://www.google.com/search?hl=en&q=configure+IIS+redirect+https
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
fmbma
Posts: 58
|
Posted: 10/14/2004, 4:56 AM |
|
Thanks Peter - I was hoping CCS would do it but I'll research the scripts and post the answer if I find a good one
|
|
|
Tuong Do
|
Posted: 10/17/2004, 9:34 PM |
|
Hi fmbma,
Use my version
It can be place in the before initialise event of the page
If UCASE(Request.ServerVariables("HTTPS")) = "OFF" Then
Dim Urls as String = "https://" &
request.Servervariables("Server_Name")
Urls = Urls & Request.Servervariables("PATH_INFO")
Response.Redirect (Urls)
End If
"fmbma" <fmbma@forum.codecharge> wrote in message
news:8416dc0a6ed604@news.codecharge.com...
> I'm working with vb.net in ccs 2.3.2.24. I'm changing over a site to ssl.
> Everything is working, except I want the site to convert the url to https
> if
> the user does not. I thought that on the login page, I could set the
> "Convert
> URL" property to ssl, the site would do it automatically, but i still get
> the
> "This page can be accessed only via secured connection." error if the user
> simply types "www.mysite.com". Is there something else I need to do?
>
> thanks,
>
> Fred
> _________________
> Fred Blau
> www.mobiledata.us
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
|