Re: Best way to do this: www.domain.com?page=var

From: Date: Tue, 17 Jan 2006 16:40:20 +0000
Subject: Re: Best way to do this: www.domain.com?page=var
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-228722@lists.php.net to get a copy of this message
I think you can do it using Location header. There is no need to use refresh. get more info at http://www.weberdev.com/Manuals/PHP/function.header.html Thanks Richard Correia On 1/17/06, Michael Hulse <micky@ambiguism.com> wrote: > > Hello, > > What would be the best way to get a page variable like this: > > www.domain.com?page=home > > to show up when a user types in: > > www.domain.com > > My current fix is to have this: > > header("Refresh: 0; > URL=http://www.domain.com/start.php?page=home"); > > ... on a index.php page on the root. > > Is there a way I can do this and avoid having a page that just does > redirection? > > Thanks for help. > Cheers, > Micky > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#228722) next »