Solved

apache redirect to another domain

Posted on 2004-08-09
5
642 Views
Last Modified: 2010-03-04
Hi All,

I have apache 2.0.40 in a redhat linux box.

On accessing the application, it is taken to say www.abc.com/lakshmi

Now is there some update i can do redirect all the requests coming to the webserver to be redirected to www.xyz.com/lakshmi.

If yes, can this redirect be done only as a fail over mechanism?

Please help
0
Comment
Question by:lakshminair
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 9

Expert Comment

by:ronan_40060
ID: 11761553
hello Lakshmi
You need to read the documenation available at
http://httpd.apache.org/docs/misc/howto.html
http://httpd.apache.org/docs/mod/mod_alias.html
after reading I am sure you will understand all else pls do put your queries
good luck
ronan
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 125 total points
ID: 11763292
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.abc.com$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . http://www.xyz.com/lakshmi
0
 
LVL 9

Expert Comment

by:ronan_40060
ID: 11763338
ahoffmann's solution should work for you :)
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

632 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