Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

Articles


Htaccess How to redirect all visitors except your IP to another website?

MiXFiX May 23 2021 1141 reads 0 comments 0 ratings

To redirect everyone but you to another website, add this code your website’s .htaccess file:
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} !^1.2.3.4
RewriteRule .* http://siteurl.com [R=302,L]

Replace 1.2.3.4 with your IP Address and siteurl.com with the actual domain name.


About MiXFiX

MiXFiX
Super Administrator
Joined since: May 02 2021

0 comments

Leave a Comment

Please Login to Post a Comment.
  • No Comments have been Posted.

Show

Rating is available to Members only.
Please Login or Register to vote.
Awesome! (0)0 %
Very Good (0)0 %
Good (0)0 %
Average (0)0 %
Poor (0)0 %