I'm having a hard time creating an alternative, friendlier URL for my clients.
The real estate system that I have generates an alternate address for each of them, for example: http://foo.bar/site.php?id=1042
However, I need the URL to be more user friendly, that is, simple to store. Thinking about this I generated in the system the creation of URLs for clients of type http://foo.bar/gladisonimoveis
But in this case, what I would like is that when typing http://foo.bar/gladisonimoveis
is directed to http://foo.bar/site.php?id=1042
it only gives 404 error, since there is no / gladisonimoveis directory, but to create a directory for each client is something very exhausting.
A programmer colleague of mine said that I can standardize this by setting once in htaccess.
I'm waiting for help, please. Rss