How to detect if user go to a link look like our rule?
<p>example:</p>

<p>I have a webpage abc.com/index.php</p>

<p>I want to detect if user connect to <strong>abc.com/index.php/bbdh</strong>,
<strong>abc.com/index.php/bb/saggfd/gjasgd/hsahgd</strong>, <strong>abc.com/index.php/bb/saggfd/gjas</strong> and so on without having a page like that on my host.</p>

<p>I'm using php and need some way to do that without using .htaccess file.
Thanks for any help!</p>
