How to get referer url without the id?
<p>I use this code to get referer url:</p>

<pre><code>&lt;?php echo $_SERVER['HTTP_REFERER']; ?&gt;
</code></pre>

<p>And the output is:</p>

<blockquote>
  <p><a href="http://example.com/application/view/viewleave.php?idleave=1" rel="nofollow">http://example.com/application/view/viewleave.php?idleave=1</a></p>
</blockquote>

<p>How should i do to get this?</p>

<blockquote>
  <p><a href="http://example.com/application/view/viewleave.php" rel="nofollow">http://example.com/application/view/viewleave.php</a></p>
</blockquote>
