473,320 Members | 2,073 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Requiring SSL

UJ
I have a web site that currently runs both non-SSL and SSL. when you type in
the web address without specifying the http or https (for example if you
entered www.fred.com) it comes up in the non-SSL mode. We want it to default
to the SSL. How can I go about doing this so that it will automatically
redirect to the secure site.

Ideally we'd also like it if somebody put in http://www.fred.com it would
automatically go to https://www.fred.com

TIA - Jeff.
Nov 19 '05 #1
4 1076
You could test this in beginrequest and redirect as needed from there...

Later we'll likely totally disable http and we'll redirect to the site root
from the corresponding error page...

--
Patrice

"UJ" <fr**@nowhere.com> a écrit dans le message de
news:OB**************@tk2msftngp13.phx.gbl...
I have a web site that currently runs both non-SSL and SSL. when you type in the web address without specifying the http or https (for example if you
entered www.fred.com) it comes up in the non-SSL mode. We want it to default to the SSL. How can I go about doing this so that it will automatically
redirect to the secure site.

Ideally we'd also like it if somebody put in http://www.fred.com it would
automatically go to https://www.fred.com

TIA - Jeff.

Nov 19 '05 #2
You have a couple choices.
You can detect non-ssl and put in a redirector.
You could shut off non-ssl and force the users to put in the https://

You can do the first option a couple ways, an easy one being that your
default page has a simple check on it and a redirector (or even just a
redirector) to the https:// site.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"UJ" wrote:
I have a web site that currently runs both non-SSL and SSL. when you type in
the web address without specifying the http or https (for example if you
entered www.fred.com) it comes up in the non-SSL mode. We want it to default
to the SSL. How can I go about doing this so that it will automatically
redirect to the secure site.

Ideally we'd also like it if somebody put in http://www.fred.com it would
automatically go to https://www.fred.com

TIA - Jeff.

Nov 19 '05 #3
UJ
Thanks Curt.

Can I redirect without the domain name? I would like to do that for testing
purposes.

So can I do something like server.transfer("https:login.aspx")
assuming login.aspx is in the root. Or can I figure out what the domain is
that they entered and then use that?

TIA - Jeff.

"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:53**********************************@microsof t.com...
You have a couple choices.
You can detect non-ssl and put in a redirector.
You could shut off non-ssl and force the users to put in the https://

You can do the first option a couple ways, an easy one being that your
default page has a simple check on it and a redirector (or even just a
redirector) to the https:// site.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"UJ" wrote:
I have a web site that currently runs both non-SSL and SSL. when you type
in
the web address without specifying the http or https (for example if you
entered www.fred.com) it comes up in the non-SSL mode. We want it to
default
to the SSL. How can I go about doing this so that it will automatically
redirect to the secure site.

Ideally we'd also like it if somebody put in http://www.fred.com it would
automatically go to https://www.fred.com

TIA - Jeff.

Nov 19 '05 #4
Nope...
https:// requires full pathing, sorry.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"UJ" wrote:
Thanks Curt.

Can I redirect without the domain name? I would like to do that for testing
purposes.

So can I do something like server.transfer("https:login.aspx")
assuming login.aspx is in the root. Or can I figure out what the domain is
that they entered and then use that?

TIA - Jeff.

"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:53**********************************@microsof t.com...
You have a couple choices.
You can detect non-ssl and put in a redirector.
You could shut off non-ssl and force the users to put in the https://

You can do the first option a couple ways, an easy one being that your
default page has a simple check on it and a redirector (or even just a
redirector) to the https:// site.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"UJ" wrote:
I have a web site that currently runs both non-SSL and SSL. when you type
in
the web address without specifying the http or https (for example if you
entered www.fred.com) it comes up in the non-SSL mode. We want it to
default
to the SSL. How can I go about doing this so that it will automatically
redirect to the secure site.

Ideally we'd also like it if somebody put in http://www.fred.com it would
automatically go to https://www.fred.com

TIA - Jeff.


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alexander Grigoriev | last post by:
I hope Mr. Stroustrup can give an answer to this question: What was rationale behind the requirements to use an ampersand and a fully qualified name of a function, to form a pointer to a member...
0
by: Ray Gurganus | last post by:
It seems like I remember an option that when enabled, will require UPDATE and DELETE statements to have a WHERE clause, to avoid destructive oversights? Now when looking for that, I can't find it....
2
by: monsterpot | last post by:
Hello, I have a document like this: <parameters> <param ptype="init">somedata</param> <param ptype="process">moredata</param> <param ptype="kill">alsodata</param> </parameters> <param> has...
0
by: Parker Thompson | last post by:
I'd like to define an element (complexType) that *must* contain certain elements one or more times, but may additionally contain any other elements. Further, I need all elements to be albe to...
4
by: David | last post by:
It's sad to say, but when using the AOL web site, like to send an email, they have a nifty capability such that when a window is resized, the textarea where the message is input expands not only...
3
by: Old Wolf | last post by:
In the documentation for std::find, it says: find returns the first iterator i in the range [first, last) for which the following condition holds: *i == value. However in my compiler's...
8
by: Martin Staael | last post by:
When doing a UPDATE on a very large table it can take quite a long time due to the commit/rollback option. Is there any way on the client side to disable the commit/rollback option so that UPDATE...
5
by: Jason Bell | last post by:
I'm an experienced programmer, but a newbie to c#, so please be kind :) In a c++, unmanaged, DLL of my own making I have a function called void XGL_Core_SetCaption(XGL_Core * core, char *...
4
by: Johnnie Norsworthy | last post by:
ASP.NET 2.0 How do I configure my web site to require forms authorization only for a subfolder off the root? I know how to set Web.config for forms authentication for the whole site, but I need...
2
by: Carl Woodward | last post by:
Dear all, Reasonably new to .NET I am confused. Some of the .exe assemblies I am creating using VS2005 are requiring User Account Control confirmation on Vista, but some are not. I am not...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.