0
I’ve been racking my brain for hours trying to figure out this htaccess thing
My need is the following, I have a root directory of my system, and each user accesses the system by URL www.meudminio.com.br/filename
But I need to internally load www.meudminio.com.br/system/index.php, without revealing to the user, and without changing the URL, even interacting with the system, if it tries to access:
www.meudminio.com.br/username/accounts? id=20 would www.meudminio.com.br/system/accounts? id=20
htaccess can help me with this?
What you already have of htaccess?
– KaduAmaral
so I know very little then I was doing: Rewriterule .* www.meudominio.com/system [R=302]
– Vinicius Nyx
it has basically nothing, I really do not understand anything of htaccess, I wanted to know how to make redirects keeping some snippets of the URL and the parameters without changing the address pro user
– Vinicius Nyx
Have you already enabled rewrite? Else add
RewriteEngine on
at the beginning ofhtaccess
. Try it like thisRewriteRule ^(\w*)/contas$ sistema/contas [QSA, L]
, I’m not sure it’ll work..– KaduAmaral
was active, does not work yet, what I had so far was: Options +Followsymlinks Rewriteengine on Rewritecond %{HTTP_HOST} meudomonio.com.br/dev[nc] Rewriterule (.*) http://www.meudomonio.com.br/dev/system [r=301,nc] but it does not work.
– Vinicius Nyx