Answer the question
In order to leave comments, you need to log in
How can I configure via .htaccess to show a certain page to all ip addresses except my current one?
How can I configure via .htaccess to show the tech_work.html page (Technical work on the site) to all ip addresses except my current one?
Option:
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !<мой текущий Ip>
RewriteRule ^(.*)$ tech_work.html [L,QSA]
Answer the question
In order to leave comments, you need to log in
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^123\.45\.67\.89$
RewriteCond %{REQUEST_URI} !=/tech_work.html
RewriteRule ^ /tech_work.html [R=301]
ErrorDocument 403 /tech_work.html
order deny,allow
deny from all
allow from 192.168.0.1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question