간편 URL

(깔끔 URL에서 넘어옴)

간편 URL(영어: clean URL, fancy URL)은 질의어 없이, 경로만 가진 간단한 구조의 URL을 말한다. 사용자 친화적 URL(영어: user-friendly URLs), 검색엔진 친화적 URL(영어: search engine friendly url) 또는 간단히 친화적 URL이라고도 한다. 깔끔하지 않은 URL에 비해 기억하기 쉽고, 입력하기 쉽다는 장점이 있다.

예시 편집

깔끔 URL과 그렇지 않은 URL을 비교해보면 다음과 같다.

깔끔하지 않은 URL 깔끔 URL
http://example.com/index.php?page=foo http://example.com/foo
http://example.com/index.php?page=consulting/marketing http://example.com/consulting/marketing
http://example.com/products?category=2&pid=25 http://example.com/products/2/25
http://example.com/cgi-bin/feed.cgi?feed=news&frm=rss http://example.com/news.rss
http://example.com/services/index.jsp?category=legal&id=patents http://example.com/services/legal/patents
http://example.com/kb/index.php?cat=8&id=41 http://example.com/kb/customer%20intelligence/sales%20forecasting
http://example.com/index.asp?mod=profiles&id=193 http://example.com/user/john-doe
http://example.com/app/dashboard/dsptchr_c80.dll?page=38661&mod1=bnr_ant&UID=4511681&SESSID=4fd8b561ac867195fba2cc5679&... http://example.com/app/dashboard/reports#monthly

사용 목적 편집

깔끔 URL은 주로 검색 엔진에 최적화하기 위해 사용된다. 그러면서도 사용성과 접근성도 높아진다. 불필요한 부분이 제거되어 URL을 입력하거나 기억하기 쉽게 된다.

다른 이유로는 웹 응용 프로그램의 실체를 드러내지 않기 위한 것도 있다. 예를 들어 URL에는 "example.php", "example.asp"와 같이 서버측 스크립트의 이름이 포함되는 것이 보통이다. 바꿔쓰기 엔진을 활용하면 본래 파일들의 이름을 다른 URL로 바꿔쓸 수 있다.

같이 보기 편집