Answer the question
In order to leave comments, you need to log in
How to check a string for the absence of a number of letters in RewriteCond (regular expressions, htaccess)?
There is a RewriteCond %{REQUEST_URI} condition. In the requested string (domain.com /ru/apartment/228 ), we need to check for the presence of "/ru/" at the beginning (domain.com /apartment/228 ) and if it is not there, then we use RewriteRule... Tried with !ru and all sorts of nonsense like !^[^\/en\/]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question