Solved

apache redirect to another domain

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Duplicate Records In MySQL 7 54
Read Config:: values from another file 2 84
Increase number of concurrent connections in Apache tomcat 6 2 63
LINUX CENTOS + APACHE 9 63
In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
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). #…
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, f…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

17 Experts available now in Live!

Get 1:1 Help Now