Redirect for Facebook's social preview bot
<?php | |
$user_agent = $_SERVER["HTTP_USER_AGENT"]; | |
if (strpos($user_agent, "facebookexternalhit") !== false) { | |
header("Location: https://runescape.com"); | |
} else { | |
echo("poc.razb.me"); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment