Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6072363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:09:07+00:00 2026-05-23T10:09:07+00:00

I’ve received my ssl certificate on a shared hosting provided and installed it successfully.

  • 0

I’ve received my ssl certificate on a shared hosting provided and installed it successfully. The certificate is prepared for mysite.com, not for *.mysite.com.
I want the site to be accessible like https : // mysite.com – no www, no http (only secure connections). I’ve found similar questions here, but not the right one.
I’m using IIS 7, .net environment. The following rules were added my web.config:

<rule name="Remove WWW prefix">
<match url="(.*)" ignoreCase="true" />
<conditions>
    <add input="{HTTP_HOST}" pattern="^www\.mysite\.com" />
</conditions>
<action type="Redirect" url="https://mysite.com/{R:1}" redirectType="Permanent" />
</rule>

<rule name="Redirect to HTTPS">
<match url="(.*)" />
<conditions>
    <add input="{SERVER_PORT}" pattern="443" negate="true" />
</conditions>
<action type="Redirect" url="https:// mysite.com/{R:1}" />

Everything is working fine, but the url https://www.mysite.com is not redirected to https://mysite.com. I get the error that the certificate is for mysite.com (which was intended :), the message comes from firefox) with the advice to add exception.

My question is what is the appropriate rule for this url?

Thank you in advance for your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:09:07+00:00Added an answer on May 23, 2026 at 10:09 am

    Unfortunately I don’t think you can do this. You need a valid SSL certificate on https://www.mysite.com to get redirected to https://mysite.com without warning the user about an invalid certificate. IIS will attempt to negotiate the SSL connection before URL Rewrite has a chance to act on it.

    You could possibly do this with a DNS entry. You could add a CNAME entry that looks like this:

    www.mysite.com.   CNAME   mysite.com.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Apache and I want to redirect all received request to the ssl
I want to examine the SSL certificate that -(void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge receives and
My web-app is located in mysite.com:8080. I want to access to it by typing
I had a problem with accepting invalid SSL certificate in my iPhone program. That
I have a site and i implemented ssl there. but when i browse it,
I cannot receive an SSL certificate for an ODBC database connection between my local
I want connect to the Oracle database 11.2 with SSL. But the only error
How can I ignore SSL certificate issues from the context of the WebConversation or
I want to use the Eclipse plugin Subclipse on Snow Leopard. I installed Eclipse
I must consume a PHP webservice which has a SSL certificate. My .net 3.5

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.