Redirect all except speciffic IP address

Discussion in 'General' started by mattltm, Sep 19, 2014.

  1. mattltm

    mattltm Member

    I'm developing a site for a client and want to redirect all visitors except me.

    I know I can add a .htaccess file with the following redirect in it...

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REMOTE_HOST} !^
    RewriteRule .* [R=302,L]

    Which will redirect everyone apart from a visitor with an IP address of

    But can I do this via ISP Config without manually creating a .htaccess file?
  2. yoplait

    yoplait Member

    It's in the apache options, in the last "tab" of your website, isn't it ?
  3. mattltm

    mattltm Member

    Tried that with no luck.

Share This Page