Answer the question
In order to leave comments, you need to log in
How to set space in htaccess url in RewriteCond?
Good evening, tell me who knows how to put a space in htaccess, exactly in the RewriteCond line, in the first line? space in url - %20
RewriteCond %{REQUEST_URI} ^/shop/textile/zhakkard/cordoba %20 /$
RewriteCond %{QUERY_STRING} ^shop
RewriteRule ^.*$ /catalog/cordoba/ [R=301,L]
Answer the question
In order to leave comments, you need to log in
Who will escape special characters?
Actually, this character %
is used for rewriting cond.
And a very handy thing
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
\%
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question