Apache - redirecting pages. All changes are in httpd.conf
RedirectMatch (.*)\.gif$ http://www.anotherserver.com$1.jpg
Redirect /service http://foo2.bar.com/service
If more than one DNS record points to the server, then, it's
possible to redirect based upon which DNS entry was used in
the web query.
For example, a single web server has the following three
DNS entries mapped to its single IP address.
dev.mchirico.org
notes.mchirico.org
It's possible to redirect or rewrite the page delivered to
the client with the following changes in httpd.conf
RewriteCond %{HTTP_HOST} ^dev.mchirico.org$
RewriteRule ^/$ http://mchirico.org/dev [L]
RewriteCond %{HTTP_HOST} ^notes.mchirico.com$
RewriteRule ^/$ http://mchirico.org/notes [L]