Answer the question
In order to leave comments, you need to log in
How to make a 404 redirect if the url contains % htacsess?
Good afternoon.
A problem of this kind, a space or % occurs periodically in the url, it is necessary to redirect to the 404 page if the % sign occurs in the url.
Thank you in advance.
Answer the question
In order to leave comments, you need to log in
RewriteCond %{THE_REQUEST} %
RewriteRule ^ - [R=404,L]
ErrorDocument 404
RewriteRule \s -
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question