Home :: Blog :: Articles :: Web-Hosting :: How to Redirect everyone to different site except few IP

How to Redirect everyone to different site except few IP

How to Redirect everyone to different site except few IP
Category: Web-Hosting
Posted:
Views: 2046
Comments: 0 [Post]
Synopsis: To redirect all the visitors to a different IP and also give access to certain / few IPs, you can use this code in your htaccess file.

To redirect all the visitors to a different IP and also give access to certain /  few IPs, you can use this code in your htaccess file.

ErrorDocument 403 http://www.youdomain.com
Order deny,allow
Deny from all
Allow from 124.34.48.165
Allow from 102.54.68.123


Comments on How to Redirect everyone to different site except few IP

Start the conversation by being the first to comment!

Share comments

Your Name: *
Comments: *
Please Note: HTML Markup will be automatically removed.
The ability to post urls has been disabled by the site administrator.
*
Type the characters you see in the picture:

*