Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Plugins
    In reply to: Set WordPress Offline
    nelslynn

    (@nelslynn)

    Can anyone explain why, with this method (as discussed above):

    <?php
    global $userdata;
    get_currentuserinfo();
    if($userdata->ID!="YOUR ID"){
    header('location: redirectedPageURL');
    }
    ?>

    and using Mozilla, when I go to http://www.mysite.com, I am NOT redirected, but when I go to mysite.com (without the www.), I am redirected. And with IE, I am redirected with either the www before the url, or without the www.

Viewing 1 replies (of 1 total)