index.php on https not working .htaccess |
Guys, i have problems with my configuration because i cant eliminate the "index.php" after i pass the site to https.
for the https i have used letsencrypt and use one hook to ssl.php that give the page obligation to stay on https, but now its not working my configuration on the .htaccess file. Help pls ![]() htacces= Code: RewriteEngine on config.php Code: $config['index_page'] = '';
let your index.php in your $config.. its working for me using https
God Bless CI Contributors
![]()
Hello,
Change in config.php file: $config['uri_protocol'] = 'PATH_INFO'; Or other URI string. Maybe works. ![]()
Did you try $config['base_url'] = 'https://yourdomain.name/';?
It is an Apache server, right? Must be server misconfiguration. Apparently your server has a different way to work on his SSL port, and is ignoring the '.htaccess' file. You need to check if the application directory has permission to use the '.htaccess' file to rewrite urls. Well, on Apache server, you just need to set "AllowOverride All" in SSL mode too. I put a global defnition to Apache like this:
Code: <Directory "/var/www/my-app-dir"> ![]()
Get rid of this line you do not need it
RewriteCond $1 !^(index\.php|resources|robots\.txt) What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Change in config.php file:
$config['uri_protocol'] = 'PATH_INFO'; try this and let me know i will help you
02-19-2017, 11:38 AM
(This post was last modified: 02-19-2017, 12:00 PM by ciadmin. Edit Reason: SEO trolling? ) |
Welcome Guest, Not a member yet? Register Sign In |