If I understand correctly, you just need to add this rewrite to your htaccess:
RewriteRule ^([a-z0-9]+)$ pastasistema/index.php?empresa=$1 [L]
Any url starting with characters from ([a-Z0-9]+) preceded by a name with letters or numbers may have one or more characters, redirects to your system page passing the company name as parameter. Change index.php to the system homepage if different.
I changed to remove home in this case ai from above only works the parameter name of the company you can add new parameters to your liking, for example:
RewriteRule ^([a-z0-9]+)/([0-9]+)$ ...
this above would be a numerical parameter, note that I added the expression [0-9] which indicates that it serves any number of 0 to 9, the + sign in front of the expression indicates one or more numeric characters. It works with letters like this [a-z], or any character from a to z minuscule is accepted.
Want to rewrite the url redirecting to which system page? empresa1/home wants to point to where?
– Rafael Salomão
the real address and www.teste.com.br/folder here has the login view that checks the user and from which company it is, then load the information, which I want the user to enter his company name at the end of the url www.teste.com.br/companyso , businessfulano would be a folder mask, keeping in the company name on login
– Junior Ramoty
Okay, I changed the rule to send the company name, make sure that’s what you need.
– Rafael Salomão
look vo and test
– Junior Ramoty
Comment if you need more parameters to change the answer, just tell me which ones?
– Rafael Salomão
5 months ago I finished college, and I’m working as a freelancer in my spare time, has a lot of knowledge yet
– Junior Ramoty
Let’s go continue this discussion in chat.
– Rafael Salomão