If URL not exists then redirect to another URL
Posted: Sat Aug 26, 2006 7:49 am
Hi,
i need a help to redirect my website.
i have hosted my site in 2 servers. form first server i just redirect the site to second server using php header code i.e.:
header("Location: http://www.mydomain.com/secondserver/index.php");
now sometimes my second server goes down. For this time period i want to locate the site to first server.
In my word i can say this way:
Task to do from first server
1. check if second server running or not. if running then redirect the page to second server.
2. if second server not running then locate the url to first server
please help!
thanks in advance
i need a help to redirect my website.
i have hosted my site in 2 servers. form first server i just redirect the site to second server using php header code i.e.:
header("Location: http://www.mydomain.com/secondserver/index.php");
now sometimes my second server goes down. For this time period i want to locate the site to first server.
In my word i can say this way:
Task to do from first server
1. check if second server running or not. if running then redirect the page to second server.
2. if second server not running then locate the url to first server
please help!
thanks in advance