Как сохранить ссылки после смены ID на Символьный код и наоборот

нужно настроить редирект, открываем index.php (например catalog/index.php) раздела и над кодом вызова компонента прописываем.

<?
$uri = $APPLICATION->GetCurUri();
$checkuri = explode(«/»,$uri);
if ($checkuri[2] == «0005») {
header(«Location: /catalog/kupit_kartoshky1/»);
}
if ($checkuri[2] == «0004») {
header(«Location: /catalog/kupit_kartoshky2/»);
}
if ($checkuri[2] == «0003») {
header(«Location: /catalog/kupit_kartoshky3/»);
}
if ($checkuri[2] == «0002») {
header(«Location: /catalog/kupit_kartoshky4/»);
}
if ($checkuri[2] == «0001») {
header(«Location: /catalog/kupit_kartoshky5/»);
}
?>

Как сохранить ссылки после смены ID на Символьный код и наоборот

4 мыслей о “Как сохранить ссылки после смены ID на Символьный код и наоборот

  • 10.03.2024 в 05:13
    Permalink

    Wow, fantastic weblog structure! How long have you ever been blogging for?

    you made running a blog glance easy. The entire look of your website is wonderful, as neatly as the content!
    You can see similar here sklep online

  • 14.03.2024 в 13:59
    Permalink

    This paragraph is genuinely a fastidious one it helps new the web people,
    who are wishing for blogging. I saw similar here: Ecommerce

  • 22.03.2024 в 06:00
    Permalink

    Hello, after reading this amazing post i am too glad
    to share my experience here with colleagues. I saw similar here: E-commerce

  • 03.04.2024 в 12:15
    Permalink

    Hey! Do you know if they make any plugins to help with
    Search Engine Optimization? I’m trying to get my site to rank for some targeted keywords but I’m not seeing very
    good gains. If you know of any please share. Appreciate it!
    You can read similar text here: Auto Approve List

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *