Solved

apache redirect to another domain

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

How to run any project with ease

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

Join & Write a Comment

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 you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now