Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Best approach to redirect mulitple domains to a new domain

Posted on 2011-10-19
Medium Priority
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 www.new.com

We would like www.test1.com/hi/there/index.html to re-direct to www.new.com/transition.html

We would like www.test2.com/my/goodness/index.html to re-direct to www.new.com

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

sentner earned 2000 total points
ID: 36995107

RewriteRule  ^/hi/there/index.html http://www.new.com/transition.html [R,L]

RewriteRule ^/my/goodness/(.*) http://www.new.com/$1 [R,L]

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

564 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