Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

How to redirect el request to https??

Hi i was reading about this topic but i couldn't make it could somebody tell me how can i do it?

all the http request must be redirected to https i was trying to make with .htaccess but this is not possible something is doing an infinite loop

thanks in advance.

Comments

  • edited 10:03AM
    You can do this in the fuel/application/config/redirects.php file. There is a "ssl" configuration there which will redirect all URIs listed to https. You can use regular expression to redirect all ":any".
  • edited 10:03AM
    i don't know if i am doing correct

    // The paths to force SSL with the key being the environment it belongs to
    $config['ssl'] = array('production' => array(':any'));

    doesn't work http is still runing on http
  • edited 10:03AM
    Are you testing it in the production environment. If not, change 'production' to 'development'.
  • edited 10:03AM
    sorry i am in prd env and i try with dev but the problem is the same
  • edited 10:03AM
    i am getting the loop again
  • edited July 2015
    Hi again this issue is already resolved that was some cloudflare chache issue, but i am getting new problem in the first page only with www.mydomain.com is not redirecting to https:
  • edited 10:03AM
    Try instead of ":any" ".*"
  • edited July 2015
    Hi Admin thanks everything's alright....
Sign In or Register to comment.