Jump to content

[SOLVED] Redirection


cheechm

Recommended Posts

I only want to redirect if the URL is www.mydomain.com with no PID. So would the first code be sufficient?

 

Yes, it will.

 

Slight modification....

 

<?php

  if((!isset($_GET['pid'])) || ($_GET['pid'] == '') || (!is_numeric($_GET['pid']))) {
    header("location: index.php?pid=0"); exit;
  }

?>

Link to comment
https://forums.phpfreaks.com/topic/65528-solved-redirection/#findComment-327220
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.