Answer the question
In order to leave comments, you need to log in
How to redirect encoded url via htaccess?
There is an encoded URL where all special characters are replaced by a percent sign with a number
:
site.ru/%3Fs%3Dsanivite%26post_type%3Dproduct%26type_aws%3Dtrue?_openstat=dGVzdDsxOzE7
special characters)?
Answer the question
In order to leave comments, you need to log in
RewriteEngine on
RewriteCond %{THE_REQUEST} ^\S+\s/%3F [NC]
RewriteRule .* /$0 [R=301,L,QSA]
GET /%3Fs%3Dsanivite%26post_type%3Dproduct%26type_aws%3Dtrue?_openstat=dGVzdDsxOzE7 HTTP/1.1
^\S+\s/%3F
catches all addresses starting with /%3F
%XX
?s=sanivite&post_type=product&type_aws=true
/?s=sanivite&post_type=product&type_aws=true&_openstat=dGVzdDsxOzE7
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question