/ Published in: Apache
Redirects visitors of a webpage to a specific URL while allowing access for specified IP-addresses.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
RewriteEngine On RewriteCond %{REMOTE_ADDR} !^321.123.321.123$ RewriteRule ^(.*)$ \http://www.example.com/maintenance.html [R=302,L]