Solved

apache redirect

Posted on 2010-08-22
3
513 Views
Last Modified: 2013-12-28
Hello,
  I have web sites on solaris (php apache). I have to mirror these application on a different machine.  I would like to create a redirect  in apache. Here is an example:


ServerA  page = http:\\www.mysitesA\page.php
ServerB page = http:\\www.mysitesB\page.php

So when the user select the page on ServerA they are redirected to ServerB
0
Comment
Question by:SiemensSEN
[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
3 Comments
 
LVL 4

Expert Comment

by:Frozenice
ID: 33497576
create a htaccess file


redirect 301 /page.phpl http://www.siteB.com/page.php
0
 
LVL 4

Accepted Solution

by:
Frozenice earned 63 total points
ID: 33497580
update my post above


create a file name .htaccess
paste this line of code.


redirect 301 /page.php http://www.siteB.com/page.php

Open in new window

0
 
LVL 38

Assisted Solution

by:yuzh
yuzh earned 62 total points
ID: 33497585
You only need to modify the configuration file in ServerA, please have a look at the example in http:Q_21270618.html
PS: you need to restart apache after you modify the  configuration file.
 
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

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…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

623 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