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

From: Date: Tue, 18 Mar 2008 10:37:47 +0000
Subject: Re: Re: help on using 'request_uri' to make a front-end site
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-271703@lists.php.net to get a copy of this message
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

« previous php.general (#271703) next »