Coding or rewrite rules for certain IP allowed and redirection for maintenance of web page


Example coding as per below:

RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} !^103\.6\.196\.115 -> Ip allowed
RewriteCond %{REQUEST_URI} !^/maintenance\.html$
RewriteRule ^(.*)$ http://tuxcode.net/maintenance.html [R=302,L]

Add Feedback