[UPHPU] URL Rewriting

Nathan Lane nathamberlane at gmail.com
Tue Apr 22 09:50:45 MDT 2008


Thank you all - this will definitely get me started.

On Tue, Apr 22, 2008 at 9:47 AM, Orson Jones <orson.uphpu at bookstore.usu.edu>
wrote:

> Nathan Lane wrote:
>
> > I guess I just want to make my query strings more SEO compatible. I've
> > seen
> > a couple of MVC frameworks do this, like cakePHP - of course I guess
> > because
> > it is an MVC system, maybe it makes more sense. It writes the url as
> > page.php/controller/function or something like that when you request it.
> > Is
> > this making any sense? Has anybody besides me heard of URL rewriting?
> >
>
> It isn't too hard. I built some functions that strip the relevant data
> out of $_SERVER. Mine were specific to a project, but looking through
> the output of the following script and trying out several urls will give
> you an idea of what to pull out.
>
> <pre>
> $_SERVER[]
> <?php print_r($_SERVER); ?>
> </pre>
>
> The relevant ones seem to be SCRIPT_FILENAME, SCRIPT_NAME and REQUEST_URI
>
> Orson
>
>


-- 
Nathan Lane
Home, http://www.nathandelane.com
Blog, http://nathandelane.blogspot.com


More information about the UPHPU mailing list