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,, but it’s not quite yet ready for the public eyes just yet. So I want to redirect all visitors (except myself) to

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.