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