Hi,
Whilst the site is being built, I want the visitors (other than my own IP) to access another server directory instead, so to the original .htaccess I added:
RewriteCond %{REMOTE_ADDR} !^(18\.13\.112\.222|18\.4\.144\.106)
RewriteCond %{REQUEST_URI} !^/inamoment/ [NC]
RewriteRule ^(.*)$ http://mysite.com/inamoment/$1 [R=302,L]
This was added after RewriteEngine on, (of course the IPs shown here are fake).
When I do this and upload, then I get a 500 server error.
-- The strange is that this is a fresh installation, but on the old one this was working like a charm --
Do you mind to have a look on the attached file and tell me if something is wrong?