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

  • SEARCH
  • Home
  • 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 8877707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:31:52+00:00 2026-06-14T19:31:52+00:00

I would like to redirect one domain to another, whilst also maintaining the same

  • 0

I would like to redirect one domain to another, whilst also maintaining the same folder and file request structure like so:

http://libraries.domain.net/testing/another/blah.php
https://libraries.anotherdomain.com/testing/another/blah.php

For the moment ignore the SSL part.

My first questions are the simple ones:

  1. How to I achieve this in my web.config file (IIS)?
  2. What is this type of redirect known as?
  3. For my own interest, how do I do this with an .htaccess file aswell? You do not have to answer this as I think this question has the correct answer anyway, but just wanted it confirmed.

Please Note: If you only know the answer to question 3, please do not bother answering as my main question is regarding how to do this in IIS, not Apache.

SSL

I have left this part out so far because I am not sure if it is possible to do without receiving security errors. However, what I would like to know is how can I perform the redirect above whilst keeping a secure connection?

Obviously anotherdomain.com must have a valid SSL certificate, but does domain.com also have to have a valid one even if it is forwarding all pages?

Will having two certificates prevent any errors coming up, or will it come up with a warning saying that You are not going to where you think you are going, or something along those lines?

Would it be better to do this with DNS? Would the SSL work with DNS?

  • 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-06-14T19:31:55+00:00Added an answer on June 14, 2026 at 7:31 pm

    How to I achieve this in my web.config file (IIS)?

    See the following:

    • http://www.iis.net/downloads/microsoft/url-rewrite
    • http://www.iis.net/learn/extensions/url-rewrite-module/url-rewrite-module-video-walkthrough
    • http://blogs.iis.net/ruslany/archive/2009/04/08/10-url-rewriting-tips-and-tricks.aspx

    An example, using IIS URL Rewrite:

    <rule name="Redirect example.net to example.com" enabled="true" stopProcessing="true">
      <match url="(.*)" />
      <conditions>
        <add input="{HTTP_HOST}" pattern="example\.net$" negate="false" />
      </conditions>
      <action type="Redirect" url="http://www.example.com/{R:1}" redirectType="Permanent" />
    </rule>
    


    What is this type of redirect known as?

    I am not sure if this has a specific name. I just call it a domain redirect or 30x redirect.


    For my own interest, how do I do this with an .htaccess file aswell? You do not have to answer this as I think this question has the correct answer anyway, but just wanted it confirmed.

    • https://stackoverflow.com/a/3010036/908471
    • http://httpd.apache.org/docs/current/mod/mod_rewrite.html
    RewriteEngine on
    
    RewriteCond %{HTTP_HOST} example.net$
    RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
    


    Will having two certificates prevent any errors coming up, or will it come up with a warning saying that You are not going to where you think you are going, or something along those lines?

    Yes, two valid certificates from trusted Certificate Authorities will prevent errors from coming up (as long as all content on the page is also sourced from valid https links). You can also just use a single certificate, if the certificate authority offers SubjectAltName support (also known as SAN or Unified Communications Certificates).

    Another thing that you can do, if you have two valid certificates and only a single IP, is use SNI, but you will need to understand that not all web clients can use SNI – so be careful. The use of SNI is going up, and I would suggest that this is becoming the preferred method as you do not have to deal with the headache of tracking domains that should be on a SAN/UCC when updating.


    Would it be better to do this with DNS? Would the SSL work with DNS?

    DNS has nothing to do with SSL. You can not trick SSL via DNS shenanigans.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to redirect as such... http://old.com/a/b/ -> http://new.com/y/z/ http://old.com/a/b/file.php -> http://new.com/y/z/ http://old.com/a/b/c/file.php
I would like to redirect my user to another domain. For example: my site
Our client would like to use just one domain name for their site to
At one point in my app, I would like to redirect the user to
We are trying to redirect everything from one domain to another with the following
I have moved site from one framework to another and now I would like
I'm using htpassword to protect one of my servers. I would like to redirect
htaccess redirection and would like to redirect all visitors on (domain.com, domain.com/,domain.com/index.php ) to
I would like to redirect all requests, that coming to www.website.com/whatever to the variant
I would like to redirect the Debug stdout stream to a textblock. Is there

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.