htaccess redirect to file except own IP

I’m having a bit of a trouble finding the right way to this:

I’m about to launch a site, www.domain.com, but it’s not quite yet ready for the public eyes just yet. So I want to redirect all visitors (except myself) to www.domain.com/teaser.html.

How can I do this, so I keep the site content hidden from visitors, without creating a loop if I redirect base url? How would a htaccess string look like?


Source: .htaccess

Leave a Reply