Answer the question
In order to leave comments, you need to log in
How to make one index.php handler for the entire site?
Hello!
I must say right away that I googled, but did not find anything.
The task is to redirect all requests to non-existent directives (such as site.ru/page or site.ru/page ) to the site root to index.php
At the same time, everything that came after the domain name of the name should go into a get request
That is, if you type in this site.ru/page/1 , the server will process this site.ru/index.php?url=page/1
Please help anyone!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question