Solved

apache redirect to another domain

Posted on 2004-08-09
5
641 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

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…
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

751 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