For example, in file test.php
:
<a href="someting/?start=1">go</a>;
so that no matter where this test.php
is, whether in Document_Root/Test/
directory or in Document_Root/Production/
directory, the anchor will point to itself.
For example, in file test.php
:
<a href="someting/?start=1">go</a>;
so that no matter where this test.php
is, whether in Document_Root/Test/
directory or in Document_Root/Production/
directory, the anchor will point to itself.
To write a link that will only change the query string, just use
So if you're at
http://the/current/url.php
, it goes tohttp://the/current/url.php?foo=bar
, or if you'rehttp://somewhere/else?entire=ly
, it goes tohttp://somewhere/else?foo=bar
.