L
L
lightalex2015-07-25 21:07:53
PHP
lightalex, 2015-07-25 21:07:53

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

3 answer(s)
A
Andrew, 2015-07-25
@Ashlst

Google "page routing/php router/etc."

D
D', 2015-07-25
@Denormalization

>I must say right away, I googled, but found nothing
Lying. The answer is easily found by a search engine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question