I have the following .htaccess
on my site:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.meusite.br/$1 [R,L]
NOTE: It works perfectly across my site.
And I have the following .htaccess
in the Code Igniter folder named admnoticias
:
RewriteEngine on
RewriteCond $1 !^(index\.php|public|\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
But for this, when I log in on the news system, I lose communication between view , controller and model in>. When I remove the .htaccess
of the whole site, the system works normally again, but the page becomes unsafe.