CI 묻고 답하기

제목 root url '/' https 접속 관련 설정 질문드립니다.
카테고리 CI 2, 3
글쓴이 인더제이 작성시각 2018/05/08 16:47:28
댓글 : 3 추천 : 0 스크랩 : 0 조회수 : 11788   RSS

현제 프로젝트가 httpshttp 둘다 사용중 입니다.

그런데 https 로 접속한다고 하더라도 url 마지막에 '/' root 경로가 붙을 경우

http로 접속하고 있습니다.

ex) https://test.com/  일경우 -> http://test.com 로 변경됨

 

root '/' 접속 -> https  

관련 설정을 어디에서 조정해야 하는지 방법좀 알려주시면 감사하겠습니다.!

 

 

 다음글 파일업로드에 관해서 질문합니다. (1)
 이전글 비밀번호 변경 시, 각 게시물의 비번 변경 문의 (2)

댓글

한대승(불의회상) / 2018/05/08 17:05:00 / 추천 0
.htaccess 파일을 먼저 살펴보세요.
인더제이 / 2018/05/08 17:29:55 / 추천 0

.htaccess 파일에는 리다이렉트 명령은 지정되어 있지 않네요.

그냥 robot, index.php 설정 지정말고는 없는거 같습니다.

RewriteEngine On
RewriteBase /
#Options +FollowSymlinks

RewriteCond $1 !^(index\.html|index\.php|assets|tmpcontents|inisic_bridge|upload|inicis|include|upload|img|img2|robots\.txt)
#RewriteCond $1 !^(index\.html|index\.php|assets|tmpcontents|inisic_bridge|com|upload|inicis|include|upload|img|img2|robots\.txt)

RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
#RewriteRule ^(.*)$ index.php/$1 [L,QSA]
인더제이 / 2018/05/08 18:27:51 / 추천 0

root 설정 찾았네습니다.

VirtualHost 에 설정잡혀있었네요. ㅎㅎ ~