HTACCESS - Redirect all other users to a Coming Soon page


/ Published in: Apache
Save to your folder(s)

Replace the IP with your IP.


Copy this code and paste it in your HTML
  1. Options +FollowSymlinks
  2. RewriteEngine on
  3. RewriteCond %{REMOTE_HOST} !^12\.345\.67\.89
  4. RewriteCond %{REQUEST_URI} !/coming-soon\.html$
  5. RewriteRule (.*)$ /coming-soon.html [R=302,L]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.