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 5:29AM
    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 5:29AM
    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 5:29AM
    Are you testing it in the production environment. If not, change 'production' to 'development'.
  • edited 5:29AM
    sorry i am in prd env and i try with dev but the problem is the same
  • edited 5:29AM
    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 5:29AM
    Try instead of ":any" ".*"
  • edited July 2015
    Hi Admin thanks everything's alright....
Sign In or Register to comment.