SSL Redirect on Cancel


So here’s the scenario… You’ve got a MOSS 2007 site using basic authentication with SSL and anonymous access enabled. The user hits the site and is prompted for login credentials. The user doesn’t have a login and hits cancel. SharePoint 2007 displays an ugly error message saying that access is denied. So you decide to create a custom error page with a redirect in IIS but it doesn’t work…

After many hours on the phone with Microsoft Support, the only conclusion was that this was an issue with the .Net Framework (not MOSS or IIS.)

The fix is to turn off anonymous access on the site. This will allow IIS to see the error and use the custom redirect. Not the easiest workaround if you have anonymous turned on for a reason but a workaround nonetheless…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: