Answer the question
In order to leave comments, you need to log in
Where can I read about RewriteCond?
Where can I read about the directives that are specified in .htaccess?
I understand that in particular this line translates to 404 if any word starting with doc occurs afterhttp://sait.ru/
RewriteCond %{REQUEST_URI} ^/doc.*
RewriteRule ^(.*)$ http://%{HTTP_HOST}/404/? [R=301,L]
http://sait.ru/documents/page
http://sait.ru/documents/
.
Answer the question
In order to leave comments, you need to log in
make a symbolic link and let yourself open
RewriteCond is not needed here, moreover, the cond is IF, and your THEN is higher
At least the design looks like this
RewriteCond
RewriteCond
RewriteRule
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question