Solved

apache redirect

Posted on 2010-08-22
3
501 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
  • 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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

809 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