Re: forward http:// to http://www every time?
- From: "ZeldorBlat" <zeldorblat@xxxxxxxxx>
- Date: 27 Aug 2006 10:38:25 -0700
Alex wrote:
Is there a way to forward any browser query of
http://mysite.com/anything/anything to
http://www.mysite.com/anything/anything?
Anyone know?
if(strpos($_SERVER['HTTP_HOST'], 'www') !== 0) {
$newURL = 'http://www.' . $_SERVER['HTTP_HOST'] .
$_SERVER['REQUEST_URI'];
header("Location: $newURL");
}
.
- References:
- forward http:// to http://www every time?
- From: Alex
- forward http:// to http://www every time?
- Prev by Date: Re: Pls Help: Splitting An String
- Next by Date: Re: mysql queries + pagination
- Previous by thread: forward http:// to http://www every time?
- Index(es):