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
file.php?details=100
or
file.php?details=100&page=2
etc.
The problem is …I want the page to be redirected to index.php when it gets called only as:
file.php
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.
Thank you for any advice 🙂
Considering
$pageto be the redirected page: