What is it called and what should I read to make it work?

Perhaps someone has already asked this question, but I'm not sure what I'm looking for. I saw a couple of PHP applications that do this URL rework "http://site.com/index.php/myaction/avariable"
I did a similar thing with mod_rewrite where you will have almost the same link "http : //site.com/whateveryouwant/myaction/avariable ", which will be redirected to the original page - http://site.com/index.php?action=myaction&variable=avariable (just an example)

What is the difference? I suspect the first thing is done through PHP, but I'm not sure how to do this.

An example of what I'm talking about can also be the foundation of Symfony 2.0.

Any suggestions are welcome.

Sorry if this is a duplicate question ... I just don't know what I'm looking for .: |

+3
source share
1 answer

The general term is “routing”. You can also find information under "good URLs" and "friendly URLs". The last two are likely to get results with the results you are looking for, as well as what you did with mod_rewrite. But routing should include basic rewrite integration for direct access to Front Controller, and then use some scripts to parse the URL and send the request to the application.

, , Zend_Framework, Zend_Controller_Router. Symfony 2.0 1.4... . Zend, , , .

+3

Source: https://habr.com/ru/post/1772321/


All Articles