PHP Url redirect problem
Posted: Tue Nov 23, 2010 3:09 pm
Hi all,
The problem im facing is-
say I have a site hosted at - http://www.abc.com/one/myApp
now in one of the html page in my application has url pointing to external address for eg. http://www.google.com. So now when i click on that url, i am suppose to be redirected to google page. But this is not happening. Instead its redirecting to http://www.abc.com/one/www.google.com. So here my redirect is failing. I tried putting a redir.php with
header(locaton:"www.google.com") code. but it also failed.
Please help me how to fix this url redirecting issue.
Thanks,
Ravi
The problem im facing is-
say I have a site hosted at - http://www.abc.com/one/myApp
now in one of the html page in my application has url pointing to external address for eg. http://www.google.com. So now when i click on that url, i am suppose to be redirected to google page. But this is not happening. Instead its redirecting to http://www.abc.com/one/www.google.com. So here my redirect is failing. I tried putting a redir.php with
header(locaton:"www.google.com") code. but it also failed.
Please help me how to fix this url redirecting issue.
Thanks,
Ravi