"There is a problem with this website's security certificate."-IN HTTPS SITE ON FIRST ACCESS

We have the security certificate for our site(for eg xxxx.net).We have added the code for redirecting the url to xxxx.net.But we have an issue when take the site  with url www.xxxx.com it shows the "There is a problem with this website's security certificate." message.If we click the link "Vontinue to this website(not recomended) it will go the exact page.
Please give me the solution for the above issue.Let me know if there is any issue related ti IIS setting?
Thanks in advance
Mike TreatArchitect CEOAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Britt ThompsonSr. Systems EngineerCommented:
What version of IIS are you using? There is a tool that does this for IIS 7 called the URL Rewrite Module:

http://www.iis.net/extensions/URLRewrite
http://nayyeri.net/blog/remove-www-prefix-from-urls-with-url-rewrite-module-for-iis-7-0/

Also, what language is your site written in? There's several different ways to redirect with code if you're not using IIS 7
0
Mike TreatArchitect CEOAuthor Commented:
We are using IIS7 version and ASP.net language .
0
Britt ThompsonSr. Systems EngineerCommented:
SInce it's IIS7 the URL Rewrite module should get the job done.
0
ParanormasticCryptographic EngineerCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.