6
How do I change the name of url
with the contents of the database at PHP
using the mod_rewrite
?
For example: I have in the bank a table with the name of urls
and I want to use it as follows. Let’s assume that on my site I have a page budget. Each name registered on bd
I pick up and play on a variable so it creates an alternative url type, but it never leaves the same page. At the end it would look something like this.
standard url: orcamento
custom url: joao.orcamento
maria.orcamento
Try using the function explode() in the global variable
$_GET
– 13dev
Why use rewrite for something that PHP has native? Just point all the subdominios to the same script and look at the name of the host in the global $_SERVER
– Bacco