Use basename($_SERVER['SCRIPT_NAME']) instead of /query.php
Shareable searches