A
A
avp2018-05-31 08:26:12
PHP
avp, 2018-05-31 08:26:12

URL which is not in the file structure of the site?

Tell me please.
There is a URL - example.com/test/test2
But I don't see such a path in the site's file system.
As I understand it, there is a conversion by type - example.com/?q=test&q2=test2

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly, 2018-05-31
@rim89

see either setting up an http server or routing in PHP scripts

Y
Yan-s, 2018-05-31
@Yan-s

The server is configured in such a way that all requests are redirected to one php file. It can also change the query string in some way. For example, as you indicated, translate everything according to certain rules into get parameters.
Further, in PHP, the query string is parsed and, according to the rules laid down in the router, the request is transferred to a specific handler.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question