Good, I'm setting my .htaccess
to put my web into production and the fact is that I do not finish it or I do not get along very well with this file and it gives me problems.
I have the following directory structure:
index.php
login.php
.htaccess
includes/
└ panel.php
└ etc..
The .htaccess
I have it configured right now like this:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L]
</IfModule>
Both index.php
and login.php
work correctly, since I hide the extension .php
as I want.
The problem comes when I login and send me panel.php
, shows me the address like this: www.miweb.com/includes/panel , and I do not want to show me the directory > '/ includes /' .
How could it be the rule that I should configure or where can I have the problem in the current configuration of the file?
Thanks in advance.