I need to hide the directory of url
.
How it works:
www.meusite.com.br/Site/view/telaInicial.php
How do I:
www.meusite.com.br/telaInicial.php
My current .htaccess
:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
Currently my .htaccess only does this function above which has nothing to do with the question, but I do not know if it disturbs the others below
What I've tried in my .htaccess
:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^(?!cake/)(.*)$ cake/$1 [QSA,L]
</IfModule>
But I get the 500 error.
I have already removed the hash (#) from the front of LoadModule rewrite_module modules/mod_rewrite.so
in apache httpd.conf, and already restart apache and nothing.
I know you have an identical question Hide domain directory using htaccess or router in cakephp , but the answer to that was not good for me.
Image of the structure.