Best approach to redirect mulitple domains to a new domain

Posted on 2011-10-19
Last Modified: 2012-05-12
We are running Apache 2.2 and we need to create some permanent redirects for multiple domain names to a new domain. Some sites will be re-directing to a transition page while the others re-directed transparently.

For example, the new domain is

We would like to re-direct to

We would like to re-direct to

Could someone help with the mod_rewrite code (preferred) or what I should add to a .htaccess file?

Thanks in advance,

Question by:Angeal
    1 Comment
    LVL 14

    Accepted Solution


    RewriteRule  ^/hi/there/index.html [R,L]

    RewriteRule ^/my/goodness/(.*)$1 [R,L]

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    759 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

    10 Experts available now in Live!

    Get 1:1 Help Now