I work with friendly url.
All requests from my site, always go through index.php
There, I wanted to get the full url that someone is requesting and writing to a bank table.
As I have several different types of combinations (rules) in my htaccess
, you can see urls like this:
www.site.com.br/news/111
www.site.com.br/produto/111
www.site.com.br/como-funciona/
www.site.com.br/news/carros/ford/11
That is, there is an infinite and extensive list of rules.
Can anyone help me with how to use PHP to get these urls, and to be writing to a table?