tags:

views:

189

answers:

1

I have an SSL certificate setup for www.mydomain.com. I'm having a strange issue in IIS 6. When I navigate to www.mydomain.com everything works fine. Since the www. part is what my ssl certificate is registered under I get no issues. Hwoever, all of my links in my site take me to mydomain.com/mylink which causes a cetificate error because it's not prefixed with www. My website is ASP.Net and all my links are relative to the root (in other words I'm specifying ~/mylink and not hardcoding the mydomain.com part). Any idea why IIS or asp.net is removing www from all my links?

A: 

You could setup another website specifically for the non-www one and force it to redirect back to the www site.

Then setup logs in a different location and see if that lets you find the offending pages/links.

Otherwise you may have to use some link checking script to see if any links are coming out incorrectly. Normally, you should be using '~' in your links so that they get resolved by ASP.NET. This should give you an app relative root which shouldn't give you this error.

So you may have a few 'http...' links in there.

Failing that, I can't think of another reason!

HTH anyway.

Simon