CodeIgniter Forums

Full Version: index.php on https not working .htaccess
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 
Huh
htacces=
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

config.php
Code:
$config['index_page'] = '';
$config['url_suffix'] = '';
let your index.php in your $config.. its working for me using https
Hello,

Change in config.php file:

$config['uri_protocol'] = 'PATH_INFO';

Or other URI string.
Maybe works. Wink
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">
Options Indexes FollowSymLinks Multiviews
AllowOverride All
Order allow,deny
allow from all
</Directory>

Wink
Get rid of this line you do not need it

RewriteCond $1 !^(index\.php|resources|robots\.txt)
Hello,

hey did u solve your probleme? let me know plz and how u did it?
Change in config.php file:

$config['uri_protocol'] = 'PATH_INFO';

try this and let me know i will help you
(06-23-2016, 09:31 PM)Code4fun Wrote: [ -> ]Did you  try $config['base_url'] = 'https://yourdomain.name/';?

Yes I have tried for my domain "Thanksgiving wishes"
But It's not working.
(06-23-2016, 06:47 PM)tsuchiya Wrote: [ -> ]Hello,

Change in config.php file:

$config['uri_protocol'] = 'PATH_INFO';

Or other URI string.
Maybe works. Wink



Yes This is also working for my "2017 Calendar with holidays" Trip Plan.