Skip to content

Instantly share code, notes, and snippets.

@saaeiddev
Created November 9, 2022 21:55
Show Gist options
  • Save saaeiddev/aa45a8edbf53831d74878bfe2a62c1ea to your computer and use it in GitHub Desktop.
Save saaeiddev/aa45a8edbf53831d74878bfe2a62c1ea to your computer and use it in GitHub Desktop.
<?php
/* redirecting */
/* follow me on instagram : saaeid.dev
follow me on twitter : @metasaeid */
error_reporting(E_ALL ^ E_NOTICE);
$id = $_GET["id"];
switch($id){
case 1:
$url = 'https://www.saeiddehghan.com'; break;
case 2:
$url = 'https://www.saeidmedia.ir'; break;
case 3:
$url = 'https://www.google.com'; break;
}
if(is_null($url)){
die("ERROR : Invalid destination");
}
header("Location : $url");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment