troyw31
05-04-2011, 04:42 PM
I am trying to get a simple php/jsp that can read an ip address and redirect to it.
For example: a person has a link: http://subdomain.domain/filename > this needs to go to the ipaddress displayed on this page (http://xx.x.x.x.x/filename ) this page has a value redirect=ipaddress (so the new url would be http:// ip address/filename. The Ip address is the value which is returned from the loadbalancer and can change.
I would like to use the information on this page which is the redirect="ipaddress". Do i need to do this in php or .htaccess file or a rewrite?
<?php
$var =('http://ipaddress/filename');exit();?>
Thanks for your help
For example: a person has a link: http://subdomain.domain/filename > this needs to go to the ipaddress displayed on this page (http://xx.x.x.x.x/filename ) this page has a value redirect=ipaddress (so the new url would be http:// ip address/filename. The Ip address is the value which is returned from the loadbalancer and can change.
I would like to use the information on this page which is the redirect="ipaddress". Do i need to do this in php or .htaccess file or a rewrite?
<?php
$var =('http://ipaddress/filename');exit();?>
Thanks for your help