Re: Reformatting the URI on return to the browser
| From: | Dave M G | Date: | Fri, 15 Jun 2007 00:33:27 +0000 |
| Subject: | Re: Reformatting the URI on return to the browser | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257038@lists.php.net to get a copy of this message | ||
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