URL masking / redirection IIS

Posted on 2012-08-26
Last Modified: 2013-11-22
On our current web server, we already serve the SSL

We wud like to serve from the same web server another SSL
URL (website built in C# language in .Net Framework)   but we don't want users to key
in the 8340 port but just  & based on
the string '' received, the users will be redirected

We can define a DNS entry such that points to
the same IP address as

Can can we go about achieving this?
Question by:sunhux

    Author Comment

    Wud somethg like the following work:

    1)      Change the SSL certificate to include the new host name (i.e.

    2)      Then use command line to bind the host name to this SSL certificate.
             (This step can’t be done through the IIS website.)

             See more information here è
    LVL 29

    Accepted Solution

    Changing the certificate would be to add a "Subject Alternative Names" SAN to add to the certificate, which you would need to work out with your certificate provider.  (You can't have two DIFFERENT certificates bound to the same port on the same server.)

    Otherwise, you have all the pieces already.

    (And I should add the caveat, I haven't done this in IIS7 with a SAN on the certificate, but have used a wildcard certificate, bound to port 443, and used host headers for and and  In that case, the graphical interface in iis recognizes the wildcard and allows input for the host header information.  The blog you included in your comment already has the steps to overcome the limitations in IIS7 though.)

    Author Comment

    Last question:
    Suppose the web server's IP addr is currently NAT'ed by the
    firewall to a public IP addr for public access, is it possible
    to use say   where the public DNS
    also points to the same public IP but when the web server
    detected there's  "/item2" in the URL, it will automatically
    go to (or redirected) a different SSL web server.

    I was told the range of public IP addr (IPv4) for our domain
    is exhausted & it's virtually impossible to ask for another
    public IP address for our domain.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    I've written instructions for one router type, but this principle may be useful for others of the same brand and even other brands of router. Problem: I had an issue especially with mobile devices that refused to use DNS information supplied via…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now