[custom 404] #modx
<? // OnWebPageInit $p = explode('?', $_SERVER["REQUEST_URI"]); $p = $p[0]; if ($p == '/projects/' && isset($_GET['gid'])) { $modx->sendErrorPage(); }