[PHP] Capturing the current URL when mod_rewrite is used

2006-01-11 Thread Brian Dunning
How do I capture the current displayed URL when it has been changed by mod_rewrite? Example: original (ugly) URL is http://domain.com?id=12345 displayed (friendly) URL is http://domain.com/California When I use 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'] that only gives me the

Re: [PHP] Capturing the current URL when mod_rewrite is used

2006-01-11 Thread Richard Lynch
On Wed, January 11, 2006 11:33 am, Brian Dunning wrote: How do I capture the current displayed URL when it has been changed by mod_rewrite? Example: original (ugly) URL is http://domain.com?id=12345 displayed (friendly) URL is http://domain.com/California When I use

Re: [PHP] Capturing the current URL when mod_rewrite is used

2006-01-11 Thread Brian Dunning
I think I answered my own question. The following works even when mod_rewrite has changed the URL: 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php