Re: Re: help on using 'request_uri' to make a front-end site

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

 



A link <a href="index.php/use1"> causes 'index.php/use1' to be appended to the full url [http://localhost/~donn/template-dev/routertest/] and at first, it's fine but after a few clicks, it keeps appending. Amazingly things still work, but the URL is out of control!

Links that don't start with a / are taken to be relative to the current documents path. You (probably) want this:

<a href="/~donn/blah/index.php/use1">

The forward slash at the start causes your browser to ignore whatever your current path is, albeit remain on the current domain.

--
Richard Heyes
Employ me:
http://www.phpguru.org/cv

--
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