Re: some kind of redirection (not the header function)

From: Date: Thu, 11 Sep 2003 19:04:29 +0000
Subject: Re: some kind of redirection (not the header function)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-162333@lists.php.net to get a copy of this message
From: "Juan Nin" <juaid@juanin.com> > The beheaviour I want to acomplish is the same as in yahoorgoups. > > You can access a mian page, where you login and have a list of all the groups you are subscribe to. > You click on the link to each one and it redirects you to: http://groups.yahoo.com/groups/yourGroup/ > > There it displays the page for your group with all it´s characteristics. The same behaviour > if you access that URL directly. Or you can also access http://groups.yahoo.com/groups/yourGroup/messages/ etc > > Thatś what I ant to do :) > > Any ideas? This is doable. It's discussed on here often. Basically, you use an apache command to FORCE "groups" to be a PHP file. Then the remainder of the URL is available in $_SERVER['REQUEST_URI']. You parse that to determine what group the user is after, retrieve the content, and show it. Search the archives or google for "search friendly urls" and you should get some good tutorials or instructions. ---John Holmes...

« previous php.general (#162333) next »