Well I am using the following code to redirect users who don’t have my IP to a coming soon page:
rewritebase / rewritecond %{REMOTE_HOST} !(^1\.2\.3\.4) rewritecond %{REQUEST_URI} !/comingsoon\.html$ rewriterule .* http://www.andrew-g-johnson.com/comingsoon.html [R=302,L]
I want to make it so that I have two IP’s that are allowed, any ideas how?
I’d actually recommend Cletus’ suggestion, but an alternative if you wanted to stick with .htaccess would also be to just add on more lines of conditions (benefit is it’s more legible than concatenating them all into one long regex):