I need to correctly write the regular expression for the address www.site.ru/search/отделка%20коттеджа/
This is what I wrote:
'/^search\/отделка%20коттеджа\/$/i'
In instanCMS
there is a custom_rewrite.php
file custom_rewrite.php
it answers as the name implies for redirects over regular expressions as an example:
$rules[] = array( 'source' => '/^search\/отделка%20коттеджа\/$/i', 'target' => '/old/other/otdelka-kottedzha.html', 'action' => 'redirect-301' );
if not for %20
, then everything would work, but my page is not redirected. I do not know how to get around this problem. Tell me please.