티스토리 툴바

블로그 이미지
"...우리 아이들에게 결코 불의와 타협하지 않아도 성공할 수 있다는 하나의 증거를 꼭 남기고 싶었습니다." manacle

카테고리

분류 전체보기 (85)
이것저것 (53)
오물딱조물딱 (32)
Total18,475
Today11
Yesterday13
결론적으로 RFC에서 언급하는 fragment identifier (URI에서 # 뒤 문자)는 클라이언트에만 존제할 뿐 서버로 전송되지 않는다. 단지 user agent에서만 URI처럼 취급될 뿐이다. 

When a URI reference is used to perform a retrieval action on the identified resource, the optional fragment identifier, separated from the URI by a crosshatch ("#") character, consists of additional reference information to be interpreted by the user agent after the retrieval action has been successfully completed.  As such, it is not part of a URI, but is often used in conjunction with a URI.

때문에 javascript와 같이 user agent에서만 취급이 가능하다. 예를 들어

http://manacle.tistory.com?page=2#id=09&name=yong9


와 같은 문자열을 만들고 링크를 클릭할 시 서버로 fragment identifier 부분이 전송되지 않으므로 $_GET과 같은 방법으로 취급할 수가  없다는 말이다.
다만 구글이나 트위터같은 경우 따로 처리하는게 있으니 아래 참고의 해시뱅에대해서를 참고...


참고
해시뱅(#!)에 대해서...
http://php.net/manual/en/reserved.variables.server.php
http://datatracker.ietf.org/doc/rfc2396/?include_text=1(4.1. Fragment Identifier)




저작자 표시 비영리 동일 조건 변경 허락
Posted by manacle