Answer the question
In order to leave comments, you need to log in
How to add a slash behind "?clear_cache=Y"?
On the site, after saving an element (news, for example), it displays "Element not found". As I understand it, because the url is formed as follows: https://site.ru/services/kompleks/?clear_cache=Y , where the slash comes before ?clear_cache=Y. Probably the solution to the problem is to put a slash after ?clear_cache=Y, like this - https://site.ru/services/kompleks?clear_cache=Y/ . Tell me how to implement it? Thanks
Answer the question
In order to leave comments, you need to log in
The correct solution is to write a normal CNC,
Inserted in the processing rules setting or in urlrewrite.php
#^/<folder>/([a-z0-9\-]+)/(\?.*|)$#
Example:
$arUrlRewrite = array(
array(
"CONDITION" => "#^/events/([a-z0-9\\-]+)/(\\?.*|)\$#",
"RULE" => "CODE=\$1",
"ID" => "",
"PATH" => "/events/event_section.php",
),
);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question