updated maps.php to support the new rewriterule