Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 521
  • Last Modified:

apache redirect

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
SiemensSEN
Asked:
SiemensSEN
  • 2
2 Solutions
 
FrozeniceCommented:
create a htaccess file


redirect 301 /page.phpl http://www.siteB.com/page.php
0
 
FrozeniceCommented:
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
 
yuzhCommented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now