B
B
blabs2016-02-07 12:16:11
PHP
blabs, 2016-02-07 12:16:11

How to restrict access by IP and set up redirection to another site for all but the selected IPs?

access to the site to everyone except the selected IP addresses through htaccess?
all but the selected IP addresses need to be redirected to a new domain
, we are working on a prototype, there is a working site.
Recently, the system sent letters, many go to the prototype instead of the working site.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zakhar Storozhuk, 2016-02-07
@theblabs

order deny,allow 
deny from all 
allow from *.*.*.*

ErrorDocument 403 http://newsite.ru/

instead of *.*.*.* - sp.
Not tested, test

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question