note 51805 deleted from function.header by didou
| From: | didou@php.net | Date: | Thu, 16 Jun 2005 06:50:16 +0000 |
| Subject: | note 51805 deleted from function.header by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-90507@lists.php.net to get a copy of this message | ||
Note Submitter: mike at go dot online dot com
----
Here's a way of forcing the use a Canonical Hostname, e.g www.domain.com instead of domain.com
<?php
if ($HTTP_HOST != $SERVER_NAME) header("Location: http://www.domain.com");
?>