http->https 그리고 www.domain.com -> 을 자동으로 https://domain.com 으로 포워딩
브라우저 주소창에
www.메인이름/test.php?var=1 라고 쳐도
자동으로 앞에 https를 붙여주고, www 를 제거해주는 .htaccess 입니다.
최종이동경로:
https://도메인이름/test.php?var=1
(뒤에 붙은 패러미터들까지 모두 함께 이동해주는...)
|
RewriteEngine On RewriteCond %{HTTPS} !=on [OR] RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L] |
* 혹시 테스팅하시고, 이상이 있거나 하면, 알려주시면 좋겠습니다.
저도 찾아가면서 만든 것이라... ^^;
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4856 | PHP | 7년 전 | 5737 | ||
| 4855 | jQuery | 7년 전 | 3239 | ||
| 4854 | jQuery | 7년 전 | 2229 | ||
| 4853 | jQuery | 7년 전 | 2832 | ||
| 4852 | MySQL | 7년 전 | 2996 | ||
| 4851 | jQuery | 7년 전 | 2342 | ||
| 4850 | jQuery | 7년 전 | 2572 | ||
| 4849 | jQuery | 7년 전 | 4311 | ||
| 4848 | PHP |
|
7년 전 | 4248 | |
| 4847 | jQuery | 7년 전 | 4021 | ||
| 4846 | jQuery | 7년 전 | 2640 | ||
| 4845 | jQuery | 7년 전 | 2157 | ||
| 4844 | jQuery | 8년 전 | 2305 | ||
| 4843 | jQuery | 8년 전 | 3057 | ||
| 4842 | jQuery | 8년 전 | 2901 | ||
| 4841 | jQuery | 8년 전 | 2231 | ||
| 4840 | jQuery | 8년 전 | 1571 | ||
| 4839 | jQuery | 8년 전 | 2469 | ||
| 4838 | jQuery |
이에스씨코리아
|
8년 전 | 2320 | |
| 4837 | jQuery | 8년 전 | 2169 | ||
| 4836 | jQuery | 8년 전 | 2094 | ||
| 4835 | jQuery | 8년 전 | 1828 | ||
| 4834 | jQuery | 8년 전 | 1868 | ||
| 4833 | jQuery | 8년 전 | 1996 | ||
| 4832 | jQuery | 8년 전 | 2187 | ||
| 4831 | jQuery | 8년 전 | 2366 | ||
| 4830 | jQuery | 8년 전 | 2632 | ||
| 4829 | jQuery | 8년 전 | 1804 | ||
| 4828 | jQuery | 8년 전 | 2749 | ||
| 4827 | jQuery | 8년 전 | 2289 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기