vakarj

Untitled

Dec 21st, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. $current_url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
  2.  
  3. function redirect_seo($new_url){
  4. header("HTTP/1.1 301 Moved Permanently");
  5. header("Location: $new_url");
  6. die();
  7. }
  8.  
  9. if($current_url == 'IDE JÖN AMIRŐL ÁT AKARSZ IRÁNYÍTANI')
  10. redirect_seo('AZ ÚJ CÉL');
Advertisement
Add Comment
Please, Sign In to add comment