Htaccess redirect exclude ip address

I used this htaccess example to redirect all the users who visit my website to the old directory except me. So I can build the new website en test it without being redirected.

Now when you guys visit you will be redirected to
But when I visit it, I will still be able to visit where the new website is being build.

Change the end of the following line to your ip address:
RewriteCond %{REMOTE_ADDR} !=

Leave a Reply

Your email address will not be published. Required fields are marked *