Okay so I have this code:
if ($_GET['url'] != 'maintenance') {
header('Location: ' . $_CONFIG['site']['url'] . '/maintenance');
exit;
}
That code works fine, redirects to maintenance. I want it however, if it's me it lets me access the site. Everybody else goes to /maintenance.
I was hoping to make it check my IP etc, but not sure how.
EDIT:
if($_GET['url'] != 'maintenance' && $_SERVER['REMOTE_ADDR'] != 'xxx.xx.xx.xxx')
That above still directs me to maintenance.