B
B
backEndDeveloper2019-05-02 10:15:42
symfony
backEndDeveloper, 2019-05-02 10:15:42

How to set up redirects in symfony through the database?

It is necessary through the admin panel to make redirect rules
like
/aboat -> /about
/catalog/item -> /item

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Samsonov, 2019-05-02
@backEndDeveloper

Save redirect rules in the database. Create a listener for the kernel.request event, in which to make a request to the database with a check for the presence of a path in the table. Redirect if necessary

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question