Answer the question
In order to leave comments, you need to log in
How to replace urls of all pages in a certain category with database aliases?
Hello!
There is an index.php file in the news directory.
If you go to the page with the get-parameter id, i.e. for example site.ru/news/?id=12
, then information from the database about the news with id=12 will be displayed.
How can I replace all these urls with those that are recorded in the database for each news. Those. for example site.ru/news/?id=12
should become site.ru/news/istoriya-companii
.
As I understand it, you need to use mod_rewrite, but how to get aliases from the database?
Thanks in advance for the tips!
Answer the question
In order to leave comments, you need to log in
do you need
a million CNC options
https://rio-shaman.ru/razrabotka-cms/uluchshenija/... ?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question