You are here: Capturing the current URL when mod_rewrite is used « PHP « IT news, forums, messages
Capturing the current URL when mod_rewrite is used

Posted by Brian Dunning on 01/11/06 19:33

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 original URL. How do I get the current URL?

Thanks.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация