I want to change all human-understandable links of the site from symbolic to numeric, but in all sources ( VK , Facebook , etc.) the links to the site are symbolic.

Is it possible to make it so that when you click on the symbolic link http://mysite.ru/catalog/tovar/oborudovanie/ automatically redirect to its numerical analog: http://mysite.ru/catalog/10/15/ ?

    1 answer 1

    Try to redirect using php. The algorithm is as follows: the user gets a product on the page of the item card, in the component the product id and section id are taken, the url is formed, the header is sent to the redirect.

    • php is possible, but difficult) In theory, you need to set a rule for address processing, I don’t understand what the rule should be - Nikolai
    • one
      none from htaccess you will not get information about id by symbol code - there is nowhere to get it from. - Dmitry Novikov