473,395 Members | 1,539 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,395 software developers and data experts.

https Redirection not working in Vista IE7

Hi,
I have created a web application, and i need the total web site to be in https. So i have written the below code in the Page Init of the Master Page to automatically redirect the site from http to https (http://myserver.com to https://www.myserver.com ).

public void Page_Init(Object O, EventArgs e)
{
if(this.Request.Url.Scheme.Equals(Uri.UriSchemeHtt ps))
{
if(this.Request.Url.Authority.ToString().ToLower() != "www.myserver.com")
{
Response.Redirect(Uri.UriSchemeHttps + Uri.SchemeDelimiter +"www."+ this.Request.Url.Authority + this.Request.Url.PathAndQuery);
}
}
else
{
if(this.Request.Url.Authority.ToString().ToLower() != "www.myserver.com")
{
Response.Redirect(Uri.UriSchemeHttps + Uri.SchemeDelimiter +"www."+ this.Request.Url.Authority + this.Request.Url.PathAndQuery);
}
else
{
Response.Redirect(Uri.UriSchemeHttps + Uri.SchemeDelimiter + this.Request.Url.Authority + this.Request.Url.PathAndQuery);
}
}
}




This code works fine with IE6 and IE7. but when i tried to work with Vista IE7 am not able to view the page.. Am getting the below security error message
There is a problem with this website's security certificate.




This organization's certificate has been revoked.

Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.



But when i removed the above coding from the master page, it works fine with vista IE7 also, but this will not solve problem as i need to run my entire website in https. So anybody please help me how do i solve this problem in Window Vista IExplorer.



Regards

KMS
Feb 19 '08 #1
0 1299

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: DotNetJunkies User | last post by:
Hello everyone: Ok here is a very weird problem I am having and I hope that some of you can share some thoughts with me on this. First of all, let me start by listing what I have: 1.-...
6
by: Angelos | last post by:
Hello, For long time now I am trying to POST some variables from a form to a script and then that script POST them to another External page or payment gateway like worldpay. The reason I want...
1
by: Smokey Grindle | last post by:
is there any easy way to detect a http request on a domain and redirect it to a HTTPS one? thanks
13
by: souissipro | last post by:
Hi, I have written a C program that does some of the functionalities mentionned in my previous topic posted some days ago. This shell should: 1- execute input commands from standard input,...
7
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am trying to set this up using asp code and IIS configuration. But it seems not working. Here it is the way I am doing. In IIS I set up a virtual directory with secure communication, I...
11
by: IfThenElse | last post by:
Hello, Is there a set up in IIS 6.0 on W2K3 that can automatically switch my users from http to https. I know there are scripts that can be added to do that. But is there a universal...
2
by: mindspring | last post by:
A pc that was created in MS office xp's Access 2002 has been working fine on a windows vista Ultimate pc that has MS OFfice Vista Edition. But all of the sudden it stopped working and gives this...
1
by: cbright | last post by:
I have a very weird problem with our site at https://store.canoegame.com. For many users the site is working as it should however for a few it is not. One of the bigger problems is the fact that,...
0
by: Raven | last post by:
Hi, I have a problem with a server side redirect from a secure page to a non-secure page (same domain name, same folder) I have added some test code that can display the target URL and that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.