473,406 Members | 2,352 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,406 software developers and data experts.

error: "Try again by typing https:// " - pls help

Hi,

when I hit my http://<domain name> site,I am getting this
error msg: I have also installed my SSL cert on the IIS 5.0

********************************
The page must be viewed over a secure channel

Please try the following:

Try again by typing https:// at the beginning of the
address you are attempting to reach.

HTTP 403.4 - Forbidden: SSL required
Internet Information Services
**********************************

need quick assistance from anyone to resolve this issue,
many thanks in advance.

cheers
Meya
Jul 19 '05 #1
6 3874
What solution are you after? Open IIS manager and take a look at the
"Secure Communications" section on the Directory Security tab on your site
properties.

Or, if you're looking to automatically redirect to https from http, see
http://www.aspfaq.com/show.asp?id=2321

Here is my slightly modified version of that though:

<%
if Request.ServerVariables("HTTPS") = "off" then
srvname = Request.ServerVariables("SERVER_NAME")
scrname = Request.ServerVariables("SCRIPT_NAME")
sQString = Request.Querystring
sRedirect = "https://" & srvname & scrname
If Len(sQString) > 0 Then sRedirect = sRedirect & "?" & sQString
Response.Redirect sRedirect
end if
%>

You can set that up as a custom 403.4.

Ray at home

"Meya" <me**@telcomunited.com> wrote in message
news:05****************************@phx.gbl...
Hi,

when I hit my http://<domain name> site,I am getting this
error msg: I have also installed my SSL cert on the IIS 5.0

********************************
The page must be viewed over a secure channel

Please try the following:

Try again by typing https:// at the beginning of the
address you are attempting to reach.

HTTP 403.4 - Forbidden: SSL required
Internet Information Services
**********************************

need quick assistance from anyone to resolve this issue,
many thanks in advance.

cheers
Meya

Jul 19 '05 #2
> Here is my slightly modified version of that though:

Nice touch. I'll do you one better, though. :-)

This version will also correctly transfer variables that came in to the page
using the POST method.

<%
if sv("HTTPS") = "off" then
method = sv("REQUEST_METHOD")
srvname = sv("SERVER_NAME")
scrname = sv("SCRIPT_NAME")
sRedirect = "https://" & srvname & scrname
if method = "POST" then
Response.Write "<form method=post action=" & _
sRedirect & " name='f'>"
for x = 1 to Request.Form.Count()
Response.Write "<input type=hidden name=" & _
Request.Form.Key(x) & " value=""" & _
Server.HTMLEncode(Request.Form.Item(x)) & _
""">" & vbCrLf
next
Response.Write "<input type=submit value=Go></form>"
Response.Write "<script>" & vbCrLf
Response.Write "document.f.submit();" & vbCrLf
Response.Write "</script>"
else
sQString = Request.Querystring
If Len(sQString) > 0 Then sRedirect = sRedirect & "?" & sQString
Response.Redirect sRedirect
end if
end if

function sv(s)
sv = Request.ServerVariables(s)
end function
%>

(With the obvious disclaimer that the post method won't work for William
Tasso. :-))

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #3
> Or, if you're looking to automatically redirect to https from http, see
http://www.aspfaq.com/show.asp?id=2321


Thanks Ray, I updated this article to include your solution and a little
extra.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #4
Nice! Thanks.

Ray at work

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Or, if you're looking to automatically redirect to https from http, see
http://www.aspfaq.com/show.asp?id=2321


Thanks Ray, I updated this article to include your solution and a little
extra.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/

Jul 19 '05 #5
"(Sorry, William Tasso, but the post method here relies on client-side
script, so won't work for you — you'll actually have to click on the Go
button.)"

This is one of those times that the ROTFLAMO or whatever would be in order.
That's a riot!

Ray at work

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Or, if you're looking to automatically redirect to https from http, see
http://www.aspfaq.com/show.asp?id=2321


Thanks Ray, I updated this article to include your solution and a little
extra.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/

Jul 19 '05 #6
Well, every time I write any example that relies on JavaScript, I remember
that I have to deal with the people who refuse to join the rest of society.
I think of some guy wandering around a nudist camp with a blindfold on. If
you're that afraid of the web, get off of it! :-)

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OK**************@tk2msftngp13.phx.gbl...
"(Sorry, William Tasso, but the post method here relies on client-side
script, so won't work for you - you'll actually have to click on the Go
button.)"

This is one of those times that the ROTFLAMO or whatever would be in order. That's a riot!

Jul 19 '05 #7

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

Similar topics

40
by: Steve Juranich | last post by:
I know that this topic has the potential for blowing up in my face, but I can't help asking. I've been using Python since 1.5.1, so I'm not what you'd call a "n00b". I dutifully evangelize on the...
9
by: Trint Smith | last post by:
I have tried everything...aspreg -i and modifying machine.config and running the fileupdate...deleting and reinstalling framework 1.1... It only happens when I do a 'Copy Project' to the...
20
by: DraguVaso | last post by:
Hi, As a former VB-programmer I'm used to the "on error goto"-errorhandling. I see that in actually all the VB.NET-samples I can fin people use the "Try - catch"-errorhandling. Which of the...
5
by: meenasamy | last post by:
Hi all i have used a script that i downloaded and uses the fopen($url,'r'); function to access a url to retrieve data and i get this error Fatal error: fopen(): Unable to find the wrapper...
4
by: Rocketman | last post by:
Error Help: CLI0120E Memory Allocation Failure -------------------------------------------------------------------------------- Hi Any help would really be appreciated. I am getting the...
0
by: Matt | last post by:
Ok, given that this is a windows ocx, it should be pretty easy to do this but I just haven't been able to figure it out. What I have is a datagrid on my form populated with various pieces of...
2
by: Tamer | last post by:
Hi! Is there a way to change the protocoll type through Javascript without reloading (or making a request from the webserver) via Javascript? for example: http://mydomain.com...
5
by: Ty | last post by:
Syntax Error-Help!! My error "SQL0180N The syntax of the string representation of a datetime value is incorrect. SQLSTATE=22007" . I'm using yyyy-mm-dd. I can see the dates in a column on...
2
by: madankarmukta | last post by:
HI, Even thought the request is made through https , $_SERVER is empty .. Can anyone suggest why this is happening .? Thanks!
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.