Header Redirect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



HI!


I would like to have some question.

For example,
I am in http://example.com/?12324242

I would like to REDIRECT from  http://example.com/?1312323232
to  http://example.com/

I can REDIRECT from http://example.com/index.php to http://example.com


Please do tell me how I can redirect!


This is the sample what I test below!

<?php
if ($_SERVER['REQUEST_URI'] == '/index.php') {
  header("HTTP/1.1 301 Moved Permanently");
  header("Location: http:///example.com/";);
  exit();
}
?>



Regards,
Yui

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux