Advertisement
Evoo

PHP Redirect with parameter

Mar 8th, 2016
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.15 KB | None | 0 0
  1. <?php
  2. //localhost/this.php?url=http://yoursite.com
  3. if(isset($_GET["url"])){
  4. header('Location:'.$_GET["url"]);
  5. exit;
  6. }
  7. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement