I wish to have the ability to redirect customers to another TLD but keep your same path:

For instance when the user would go to:


Using apache how do i redirect the consumer to something similar to:


For those who have mod_rewrite enabled in your server, you can put this to your .htaccess file.

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteCond %{HTTP_HOST} ^example\.com$
  RewriteRule ^(.*)$ http://my_new_site.com/$1 [R=301,L]

make use of a 302 redirect inside your config:

<VirtualHost *:80>
  ServerName example.com
  Redirect /cars http://my_new_site.com/cars/

If you want more versatility, you should use mod_rewrite, after which use individuals rewrites:

RewriteEngine on
RewriteRule ^/(.*)$ http://my_new_site.com/$1 [NC]

There is a nice documentation at apache.org.