Re: Reformatting the URI on return to the browser

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

 



Robert,

Thank you for responding.
But to expound... :) Wikipedia issues a 301 (permanently moved) response
header (don't tell Richard Lynch ;) thus redirecting your browser to the
underscore version.
I won't tell Richard Lynch if you don't want me to.

Now that you've clarified what I'm looking for, I was able to dig up a little code on the 'net, at this site for instance:
http://www.beyondink.com/howtos/301-redirect.html

Where I got this code:

<?php
   header('HTTP/1.1 301 Moved Permanently');
   header('Location: http://www.new-url.com/');
?>

Of course I modified it slightly to fit my needs. But basically it seems to work like a charm so far.

Thanks for all your advice and assistance.

--
Dave M G
Ubuntu Feisty 7.04
Kernel 2.6.20-15-386

--
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