RE: How do you read one of these parameters?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Brian Dunning [mailto:brian@xxxxxxxxxxxxxxxx] 

> I see URLs formatted like this:
> 
>    http://tinyurl.com/xyz
> 
> How do you read that "xyz," since there's no "/?x=" preceding 
> it? Is it not a get parameter?

My best guess is that it's being converted by Apache using mod_rewrite.
For one of my websites, for instance, I have mod_rewrite convert
/op_ed/123 to /op_ed/index.php?id=123. It's more search engine-friendly,
for one, and an easier structure to remember for non-techie folks.

More on mod_rewrite here:

http://httpd.apache.org/docs/misc/FAQ.html#rewrite-more-config

This is Apache-specific, but I'd imagine there are similar methods for
other webservers.


-- 
Mike Johnson             Smarter Living, Inc.
Web Developer            www.smartertravel.com
mike@xxxxxxxxxxxxxxxxx   (617) 886-5539

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux