Welcome Guest, Not a member yet? Register   Sign In
Redirect doesn't work with SSL
#2

(04-11-2017, 05:33 AM)ghost13 Wrote: We have a basic website built with CodeIgniter. There are 4 pages altogether. We recently moved to SSL certificate and the website doesn't redirect properly
in .htaccess we have the standard directives to access pages without /index.php/
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

Since we moved to https all links stopped working eg. www.example.com/home doesn't work anymore. But if you access the page with www.example.com/index.php/home it works!!!

Is there anything else I need to write in the htaccess file? Or any other way to fix the redirects?

The virtualhost config is wrong. the config of you https is missing an AllowOverride.
Reply


Messages In This Thread
Redirect doesn't work with SSL - by ghost13 - 04-11-2017, 05:33 AM
RE: Redirect doesn't work with SSL - by Paradinight - 04-11-2017, 11:27 AM
RE: Redirect doesn't work with SSL - by ghost13 - 04-13-2017, 12:11 AM
RE: Redirect doesn't work with SSL - by InsiteFX - 04-14-2017, 02:30 AM
RE: Redirect doesn't work with SSL - by ghost13 - 04-25-2017, 01:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB