non-www to www 리다이렉션

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 }}