I am just trying to redirect like http://domain.yourdomain.com/redir.php?url= Code (markup): Where url=anydomain
check out the header commands - have to be done before you output anything to the browser. header('http://domain.yourdomain.com/redir.php?url='.$anydomain); PHP:
you can use the header function on PHP. However if you have already created text output, then that function will generate an error. In that case you can try this: function redirect($anydomain) { echo '<META http-equiv="refresh" content="0;URL='.$anydomain.'">'; die(); } redirect("http://www.anydomain.com"); PHP: Amit
Getting error. I need this http://domain.yourdomain.com/redir.php?url=mutlipleDomain Code (markup): Ex- http://domain.yourdomain.com/redir.php?url=google.com Code (markup): when some one put the above url in browser,it will redirect to google.com or http://domain.yourdomain.com/redir.php?url=bing.com Code (markup): when some one put the above url,it will redirect to bing.com
Add the function I gave you on redir.php. Then call it with this: redirect($_GET['url']); If this doesnt work, let me know what error you get. Thanks