Change all types of requests retaining parameters and URL via htaccess

0

I'm breaking my head for hours trying to understand the htaccess thing

My need is as follows, I have a root directory of my system, and each user accesses the system through the URL www.mydminio.com.br/nomedusername

But I need to be internally uploaded to www.meudminio.com.br/sistema/index.php, without revealing the user, and without changing the URL, even if interacting with the system, if he tries to access:

www.meudminio.com.br/nomeusuario/contas?id=20 would be www.meudminio.com.br/sistema/contas?id=20

Can htaccess help me with this?

    
asked by anonymous 07.08.2015 / 16:18

1 answer

0

Leave your .htaccess with just this:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]

Then program the% s of the routes that the system will have on%. See this article: link

    
12.08.2015 / 14:32