"Non-www to www 리다이렉션"의 두 판 사이의 차이

(새 문서: ==개요== ;Redirect non-www to www ;non-www to www 넘겨주기 ;non-www to www 리다이렉션 * example.com를 www.example.com로 넘겨주는 URL 리다이렉션 {{소스헤더|g...)
 
 
(같은 사용자의 중간 판 11개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{소문자}}
==개요==
==개요==
;Redirect non-www to www
;Redirect non-www to www
5번째 줄: 6번째 줄:
* example.com를 www.example.com로 넘겨주는 URL 리다이렉션
* example.com를 www.example.com로 넘겨주는 URL 리다이렉션


{{소스헤더|google.com → www.google.com}}
{{소스헤더|google.com}}
<source lang='console'>
<source lang='console'>
$ curl -I http://google.com
$ curl -I http://google.com
19번째 줄: 20번째 줄:
X-Frame-Options: SAMEORIGIN
X-Frame-Options: SAMEORIGIN
</source>
</source>
{{소스헤더|naver.com → www.naver.com}}
<source lang='console'>
$ curl -I https://google.com
HTTP/1.1 301 Moved Permanently
Location: https://www.google.com/
Content-Type: text/html; charset=UTF-8
Date: Mon, 16 Jul 2018 22:39:48 GMT
Expires: Wed, 15 Aug 2018 22:39:48 GMT
Cache-Control: public, max-age=2592000
Server: gws
Content-Length: 220
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Alt-Svc: quic=":443"; ma=2592000; v="44,43,39,35"
</source>
{{소스헤더|naver.com}}
<source lang='console'>
<source lang='console'>
$ curl -I http://naver.com
$ curl -I http://naver.com
31번째 줄: 46번째 줄:
Vary: Accept-Encoding,User-Agent
Vary: Accept-Encoding,User-Agent
</source>
</source>
 
<source lang='console'>
$ curl -I https://naver.com
HTTP/1.1 301 Moved Permanently
Server: NWS
Date: Mon, 16 Jul 2018 22:41:18 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Location: http://www.naver.com/
Vary: Accept-Encoding,User-Agent
Referrer-Policy: unsafe-url
</source>
{{소스헤더|daum.net}}
<source lang='console'>
$ curl -I https://daum.net
HTTP/1.1 302 Found
Date: Mon, 16 Jul 2018 22:44:02 GMT
Server: Apache
Location: http://www.daum.net/
Connection: close
Content-Type: text/html; charset=iso-8859-1
</source>


==같이 보기==
==같이 보기==
* [[HTTP 301]]
* [[URL 리다이렉션]]
* [[URL 리다이렉션]]
* [[HTTP to HTTPS 리다이렉션]]
* [[www to non-www 리다이렉션]]
* [[포털사이트 www https 리다이렉션 구조]]


[[분류: 명사]]
[[분류: URL 리다이렉션]]

2018년 7월 17일 (화) 10:33 기준 최신판

1 개요[ | ]

Redirect non-www to www
non-www to www 넘겨주기
non-www to www 리다이렉션
  • example.com를 www.example.com로 넘겨주는 URL 리다이렉션
google.com
$ curl -I http://google.com
HTTP/1.1 301 Moved Permanently
Location: http://www.google.com/
Content-Type: text/html; charset=UTF-8
Date: Mon, 16 Jul 2018 22:33:48 GMT
Expires: Wed, 15 Aug 2018 22:33:48 GMT
Cache-Control: public, max-age=2592000
Server: gws
Content-Length: 219
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
$ curl -I https://google.com
HTTP/1.1 301 Moved Permanently
Location: https://www.google.com/
Content-Type: text/html; charset=UTF-8
Date: Mon, 16 Jul 2018 22:39:48 GMT
Expires: Wed, 15 Aug 2018 22:39:48 GMT
Cache-Control: public, max-age=2592000
Server: gws
Content-Length: 220
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Alt-Svc: quic=":443"; ma=2592000; v="44,43,39,35"
naver.com
$ curl -I http://naver.com
HTTP/1.1 301 Moved Permanently
Server: NWS
Date: Mon, 16 Jul 2018 22:28:02 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Location: http://www.naver.com/
Vary: Accept-Encoding,User-Agent
$ curl -I https://naver.com
HTTP/1.1 301 Moved Permanently
Server: NWS
Date: Mon, 16 Jul 2018 22:41:18 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Location: http://www.naver.com/
Vary: Accept-Encoding,User-Agent
Referrer-Policy: unsafe-url
daum.net
$ curl -I https://daum.net
HTTP/1.1 302 Found
Date: Mon, 16 Jul 2018 22:44:02 GMT
Server: Apache
Location: http://www.daum.net/
Connection: close
Content-Type: text/html; charset=iso-8859-1

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}