Q&A

http://example.com 이라는 주소에

ssl이 걸리니 https://www.example.com:43300 이라는 주소로 변경되었습니다 (호스팅)

 

그래서

https://xetown.com/qna/438585 이나

https://xetown.com/qna/496774#comment_497517 같은 질문을 통해서

 

.htaccess 에 몇 자 적어넣어야 한다는 것을.. 알게 되었습니다

 

바라는 점은

http://example.com

http://www.example.com

https://example.com

https://www.example.com

이렇게 뭐라고 쳐서 들어오던

 

https://www.example.com:43300

 

로 일관되게 바꿔주도록 하는 것을 원하는 것이었습니다(.....?!)

이미 나왔던 질문에 적힌대로 다 해봤습니다 사실 ㅠㅠ 방문기록 까지 전부 지워가며 백업했던거 뒤집어보고 다 해봤는데 가장 근접하게 성공했던 사례는...

아래의 1번인데..

http://example.com는 되는데 http://www.example.com 는 

https://www.example.com:43300로 안바뀌네요,,

 

2번은 아에 안되구요 ㅠㅠ

 

휴 ㅠㅠ 우짜죠..시간 되시면 좀 확인해주실분잇나요,,,

 

1. 

RewriteEngine on RewriteCond %{HTTPS} off [OR]

RewriteCond %{HTTP_HOST} !^www\.

RewriteRule ^ https://www.example.com:43300%{REQUEST_URI} [NE,L,R]

 

2.

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}:43300%{REQUEST_URI} [R=301,L]

 

 

댓글 5