how to make luk outbound link as inbound link

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
User avatar
ejsexton82
New php-forum User
New php-forum User
Posts: 86
Joined: Mon Jun 04, 2012 10:05 pm
Location: Ankara, Turkey
Contact:

Re: how to make luk outbound link as inbound link

Post by ejsexton82 » Sat Jun 09, 2012 10:09 pm

If your URL was something like this:
  • http://mydomain.com/index.php?value=http://www.yourdomain.com
Then the following code should redirect to the other site:

Code: Select all

if(!empty($_GET['value'])) {
	header("Location: {$_GET['value']}");
	exit;
}

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests