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.


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

MiXFiX May 23 2021 2870 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} !^
RewriteRule .* http://siteurl.com [R=302,L]

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

About MiXFiX

Super Administrator
Joined since: May 02 2021


Leave a Comment

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


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 %