Re[2]: [PHP] turn off the www
| From: | Richard Davey | Date: | Wed, 29 Jun 2005 18:14:04 +0000 |
| Subject: | Re[2]: [PHP] turn off the www | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-217853@lists.php.net to get a copy of this message | ||
Hello André,
Wednesday, June 29, 2005, 8:03:00 PM, you wrote:
AM> Wouldn't
AM> $newUrl = 'https://' . substr(
AM> $_SERVER['SERVER_NAME'], 4 ) ........
AM> be a _hell_ of a lot faster?
Sure.. providing they always link to the page using www.domain.com
(and the same goes for anyone else who links to their site)
Otherwise it could cause a slight problem, with unfortunate effects if
your domain is something like e-sparse.com :)
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I do not fear computers. I fear the lack of them." - Isaac Asimov