웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
IIS 7용 Rewrite
2011.02.20 18:08
아래 Rule을 web.config에 넣으면 됩니다.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="rule 1" stopProcessing="true">
<match url="^layouts/(.+)/(.+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="./index.php" />
</rule>
<rule name="rule 2" stopProcessing="true">
<match url="^(.+)/files/(member_extra_info|attach|cache|faceOff)/(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{SCRIPT_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="./files/{R:2}/{R:3}" />
</rule> <rule name="rule 3" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)(/[a-zA-Z0-9_]+(/entry)?)?/(files|modules|common|widgets|widgetStyle|layouts|addons)/(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{SCRIPT_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="./{R:4}/{R:5}" />
</rule>
<rule name="rule 4" stopProcessing="true">
<match url="^(rss|atom)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?module=rss&act={R:1}" appendQueryString="false" />
</rule>
<rule name="rule 5" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/(rss|atom|api)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?mid={R:1}&act={R:2}" appendQueryString="false" />
</rule>
<rule name="rule 6" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/(rss|atom|api)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?vid={R:1}&mid={R:2}&act={R:3}" appendQueryString="false" />
</rule>
<rule name="rule 7" stopProcessing="true">
<match url="^([0-9]+)/(.+)/trackback$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?document_srl={R:1}&key={R:2}&act=trackback" appendQueryString="false" />
</rule>
<rule name="rule 8" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/([0-9]+)/(.+)/trackback$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?vid={R:1}&document_srl={R:2}&key={R:3}&act=trackback" appendQueryString="false" />
</rule>
<rule name="rule 9" stopProcessing="true">
<match url="^admin/?$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?module=admin" appendQueryString="false" />
</rule>
<rule name="rule 10" stopProcessing="true">
<match url="^([0-9]+)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?document_srl={R:1}" appendQueryString="false" />
</rule>
<rule name="rule 11" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/?$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{SCRIPT_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="./index.php?mid={R:1}" appendQueryString="false" />
</rule>
<rule name="rule 12" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/([0-9]+)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?mid={R:1}&document_srl={R:2}" appendQueryString="false" />
</rule>
<rule name="rule 13" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/?$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{SCRIPT_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="./index.php?vid={R:1}&mid={R:2}" appendQueryString="false" />
</rule>
<rule name="rule 14" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([0-9]+)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?vid={R:1}&mid={R:2}&document_srl={R:3}" appendQueryString="false" />
</rule>
<rule name="rule 15" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/entry/(.+)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?mid={R:1}&entry={R:2}" appendQueryString="false" />
</rule>
<rule name="rule 16" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/entry/(.+)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?vid={R:1}&mid={R:2}&entry={R:3}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="rule 1" stopProcessing="true">
<match url="^layouts/(.+)/(.+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="./index.php" />
</rule>
<rule name="rule 2" stopProcessing="true">
<match url="^(.+)/files/(member_extra_info|attach|cache|faceOff)/(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{SCRIPT_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="./files/{R:2}/{R:3}" />
</rule> <rule name="rule 3" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)(/[a-zA-Z0-9_]+(/entry)?)?/(files|modules|common|widgets|widgetStyle|layouts|addons)/(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{SCRIPT_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="./{R:4}/{R:5}" />
</rule>
<rule name="rule 4" stopProcessing="true">
<match url="^(rss|atom)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?module=rss&act={R:1}" appendQueryString="false" />
</rule>
<rule name="rule 5" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/(rss|atom|api)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?mid={R:1}&act={R:2}" appendQueryString="false" />
</rule>
<rule name="rule 6" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/(rss|atom|api)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?vid={R:1}&mid={R:2}&act={R:3}" appendQueryString="false" />
</rule>
<rule name="rule 7" stopProcessing="true">
<match url="^([0-9]+)/(.+)/trackback$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?document_srl={R:1}&key={R:2}&act=trackback" appendQueryString="false" />
</rule>
<rule name="rule 8" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/([0-9]+)/(.+)/trackback$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?vid={R:1}&document_srl={R:2}&key={R:3}&act=trackback" appendQueryString="false" />
</rule>
<rule name="rule 9" stopProcessing="true">
<match url="^admin/?$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?module=admin" appendQueryString="false" />
</rule>
<rule name="rule 10" stopProcessing="true">
<match url="^([0-9]+)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?document_srl={R:1}" appendQueryString="false" />
</rule>
<rule name="rule 11" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/?$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{SCRIPT_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="./index.php?mid={R:1}" appendQueryString="false" />
</rule>
<rule name="rule 12" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/([0-9]+)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?mid={R:1}&document_srl={R:2}" appendQueryString="false" />
</rule>
<rule name="rule 13" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/?$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{SCRIPT_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="./index.php?vid={R:1}&mid={R:2}" appendQueryString="false" />
</rule>
<rule name="rule 14" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([0-9]+)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?vid={R:1}&mid={R:2}&document_srl={R:3}" appendQueryString="false" />
</rule>
<rule name="rule 15" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/entry/(.+)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?mid={R:1}&entry={R:2}" appendQueryString="false" />
</rule>
<rule name="rule 16" stopProcessing="true">
<match url="^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/entry/(.+)$" ignoreCase="false" />
<action type="Rewrite" url="./index.php?vid={R:1}&mid={R:2}&entry={R:3}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
댓글 0
제목 | 글쓴이 | 날짜 |
---|---|---|
으앗~~ 이거 엄청긴데 어느새월에 brbr 치구있어..=_;; 한번에 엔터효과주자! [15] | 깻잎사랑=_=v | 2002.09.15 |
최근게시물의 폰트크기와 링크색상 바꾸기. [5] | 매머드 | 2002.09.13 |
[HTML 초보자]- 테이블 태그(셀을 합치자..^^) [10] | ZipShin | 2002.09.11 |
레이어 고정법 [8] | bageup | 2002.09.11 |
Fieldset을 이용한 제몰 딸린 테이블~!!! [2] | 깻잎사랑=_=v | 2002.09.10 |
Fieldset을 이용한 iframe의 효과~! [6] | 깻잎사랑=_=v | 2002.09.09 |
벅스 연동 되는 자세한 소스... [6] | 서비 | 2002.09.07 |
벅스 플레이어 소스입니다. [6] | ☺Lifestory™ | 2002.09.07 |
[HTML 초보자]- 테이블 태그를하자-4 [1] | ZipShin | 2002.09.07 |
[HTML 초보자]- 테이블 태그를하자-3 [2] | ZipShin | 2002.09.04 |
자바스크립트 없이 브라우저 버전체크 [5] | steelheart | 2002.09.03 |
[HTML 초보자]- 테이블 태그를하자-2 [5] | ZipShin | 2002.09.02 |
초보에게는 골치아픈 배경 위치 정하기... [6] | 유지호 | 2002.09.01 |
[HTML 초보자] 테이블 태그를하자-1 [5] | ZipShin | 2002.08.30 |
배경그림 고정하기 [5] | 티투 | 2002.08.28 |
[HTML 초보자] marquee 태그 마스터 하기. [5] | ZipShin | 2002.08.27 |
스타일 시트 적용순서 [4] | 판타랏사 | 2002.08.24 |
[HTML 초보자] HTML <Hr>태그에 대해서.. [3] | ZipShin | 2002.08.23 |
노프레임 홈페이지 만들기 강좌:) [53] | Alunar@R. | 2002.08.22 |
[HTML 초보자] 강제개행 <br>태그 엔터효과. [8] | ZipShin | 2002.08.21 |