is there any way to redirect a php page if there are no variables in the url?
<p>I'm trying to do something really simple but I can't figure out a way to do it. Basically I have a PHP page that gets called like</p>

<pre><code>file.php?details=100
</code></pre>

<p>or</p>

<pre><code>file.php?details=100&amp;page=2
</code></pre>

<p>etc.</p>

<p>The problem is ...I want the page to be redirected to index.php when it gets called only as:</p>

<pre><code>file.php
</code></pre>

<p>How would I do that? Basically if there are NO variables in the request, it should redirect to index.php. If there are ANY variables in the request, it should load normally.</p>

<p>Thank you for any advice :)</p>
