Apache Rewrite rule

I want to have exchange.com be a redirect to the homepage of solution.com, but would it be possible to have exchange.com/savings be a redirect to the savings page? Or possibly savings.adhdtreatmentinfo.com?. If possible what would be the rewrite rule.

you probably need to use Redirect or RedirectMatch since it looks like you're using different server. or is solution.com content exist on the same server? then it'll not be going to solution.com through rewrite it'll just fetch content from different location

# I want to have exchange.com be a redirect to the homepage of solution.comRewriteCond %{HTTP_HOST} exchange.com$RewriteCond %{REQUEST_URI} ^/?$RewriteRule .* www.solution.com# would it be possible to have exchange.com/savings be a redirect to the savings page? Or possibly savings.adhdtreatmentinfo.comRewriteCond %{HTTP_HOST} exchange.com$RewriteCond %{REQUEST_URI} ^/savings$RewriteRule (.*) $1.adhdtreatmentinfo.com

# except one sub page exchange.com/savings redirected to the savings page of exchange.comRewriteCond %{HTTP_HOST} exchange.com$RewriteRule ^(savings)(/.*) $1.exchange.com$2 [L]# All the pages of exchange.com should be redirected to solution.com home pageRewriteCond %{HTTP_HOST} exchange.com$RewriteRule (.*) www.solution.com/$1

Featured Post

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…

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…

Internet Business Fax to Email Made Easy -
With eFax Corporate (http://www.enterprise.efax.com), 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…