Quote:
Originally Posted by Okiewan
Nice hack, very useful!
Only issue is when linking to a post (for example) within the forum itself...
Anyway to apply this to only external links?
|
In redirect.php find:
PHP Code:
if ($rdr == '')
{
eval(print_standard_error('error_redirect'));
}
And Replace With:
PHP Code:
// Get Host Name From URL
preg_match("/^(http:\/\/)?([^\/]+)/i", $rdr, $matches);
$hostname = $matches[2];
if ($hostname=='www.domain.net')
{
$url = $rdr;
eval(print_standard_redirect('Redirecting...',0));
}
else if ($rdr == '')
{
eval(print_standard_error('error_redirect'));
}
Change
$hostname to yours and that should work for you.