Slug가 뭘까?
IT와 관련된 글을 읽다보니 slug라는 말을 자주 보게 되는데 뜻이 뭔지 궁금해서 찾아보게 되었다.
인터넷으로 찾아보니 제일 먼저 보이는게 아래 2개 단어이다.
1) 슬러그는 야드파운드법의 중력단위계에 속하며 질량의 단위이다
2) 민달팽이
민달팽이는 가끔 영어를 보다보면 나와서 그런가 했는데,
IT 용어는 아닌것 같아 더 검색을 해보니 인터넷 용어중에 하나로
위키피디어에서 시맨틱 URL을 정의하는 말 중에 다음과 같이 정의하고 있다.
첫줄에 보면 사람이 읽을수 있는 키워드를 사용해서 URL의 한 부분을 slug라고 한다.
지금 사용하고 있는 블로그도 일종의 slug를 이용한 주소체계를 갖추고 있다고 볼 수 있다.
아래는 위키피디어 본문.
http://en.wikipedia.org/wiki/Semantic_URL
인터넷으로 찾아보니 제일 먼저 보이는게 아래 2개 단어이다.
1) 슬러그는 야드파운드법의 중력단위계에 속하며 질량의 단위이다
2) 민달팽이
민달팽이는 가끔 영어를 보다보면 나와서 그런가 했는데,
IT 용어는 아닌것 같아 더 검색을 해보니 인터넷 용어중에 하나로
위키피디어에서 시맨틱 URL을 정의하는 말 중에 다음과 같이 정의하고 있다.
첫줄에 보면 사람이 읽을수 있는 키워드를 사용해서 URL의 한 부분을 slug라고 한다.
지금 사용하고 있는 블로그도 일종의 slug를 이용한 주소체계를 갖추고 있다고 볼 수 있다.
아래는 위키피디어 본문.
http://en.wikipedia.org/wiki/Semantic_URL
Slug[edit]
Some systems define a slug as the part of a URL which identifies a page using human-readable keywords.[4][5] It is usually the end part of the URL, which can be interpreted as the name of the resource, similar to the basename in a filename or the title of a page. The name is based on the use of the word slug in the news media to indicate a short name given to an article for internal use.
Slugs are typically generated automatically from a page title but can also be entered or altered manually, so that while the page title remains designed for display and human readability, its slug may be optimized for brevity or for consumption by search engines. Long page titles may also be truncated to keep the final URL to a reasonable length.
Slugs are generally entirely lowercase, with accented characters replaced by letters from the English alphabet and whitespace characters replaced by a dashor an underscore, in order to avoid being encoded. Punctuation marks are generally removed. For example:
- Original title: This, That & the Other! Various Outré Considerations
- Generated slug:
this-that-the-other-various-outre-considerations
댓글
댓글 쓰기