search.php will stack and show multiple times
<p>my site is a search engine and and if you type in search.php with the forward slashes it will show results the same as the regular url. for example:<br></p>

<p>regular url:
<a href="http://domain.com/search.php?query=keyword&amp;select=all" rel="nofollow">http://domain.com/search.php?query=keyword&amp;select=all</a> </p>

<p>stacking url:
<a href="http://domain.com/search.php/search.php?query=keyword&amp;select=all" rel="nofollow">http://domain.com/search.php/search.php?query=keyword&amp;select=all</a><br>
<a href="http://domain.com/search.php/search.php/search.php?query=keyword&amp;select=all" rel="nofollow">http://domain.com/search.php/search.php/search.php?query=keyword&amp;select=all</a></p>

<p>I can literally keep adding search.php/ and it will always work.
How can I make it only work when the regular url is used? .htaccess maybe?<br>
Another thing is my search.php is in the root directory and not in a "search" subfolder. Anyone have any ideas?</p>

<p>EDIT:
Also if anyone else ever sees this and is having the same problem. I added AcceptPathInfo Off to my .htaccess and it seemed to fix it.</p>
