Answer the question
In order to leave comments, you need to log in
Why doesn't rewritecond work in .htaccess?
Here is a piece of code from .htaccess:
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^178\.204\.71\.100
RewriteRule !stub.html$ https://site.ru/stub.html [L,R=301]
Answer the question
In order to leave comments, you need to log in
Why !
? Replace with ^
.
RewriteRule ^stub.html$ https://site.ru/stub.html [L,R=301]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question