CodeIgniter Forums
index.php on https not working .htaccess - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: index.php on https not working .htaccess (/showthread.php?tid=65537)



index.php on https not working .htaccess - furrutia - 06-23-2016

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'] = '';



RE: index.php on https not working .htaccess - marksman - 06-23-2016

let your index.php in your $config.. its working for me using https


RE: index.php on https not working .htaccess - tsuchiya - 06-23-2016

Hello,

Change in config.php file:

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

Or other URI string.
Maybe works. Wink


RE: index.php on https not working .htaccess - Code4fun - 06-23-2016

Did you try $config['base_url'] = 'https://yourdomain.name/';?


RE: index.php on https not working .htaccess - BabalooAye - 07-15-2016

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


RE: index.php on https not working .htaccess - InsiteFX - 07-15-2016

Get rid of this line you do not need it

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


RE: index.php on https not working .htaccess - michaell.addam - 07-27-2016

Hello,

hey did u solve your probleme? let me know plz and how u did it?


RE: index.php on https not working .htaccess - whatoneneeds - 07-29-2016

Change in config.php file:

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

try this and let me know i will help you


RE: index.php on https not working .htaccess - daggu - 11-07-2016

(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.


RE: index.php on https not working .htaccess - daggu - 02-19-2017

(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.