| 제목 | IIS url 재작성 기능 문의드려요~ | ||
|---|---|---|---|
| 글쓴이 | 동도리군 | 작성시각 | 2013/09/23 09:06:53 | 
|  | |||
| 리눅스에서는 ------------------------------------- .htaccess ------------------------------------- <IfModule mod_rewrite.c>     RewriteEngine on     RewriteCond $1 !^(index\.php|_lib/|logs/|images/|css/|js/|robots\.txt)     RewriteRule ^(.*)$ /index.php/$1 [L] </IfModule> 처럼 사용하고 있었는데요 IIS 7.5에서 URL 재작성을 이용해보니 ----------------------------------------- web.config -----------------------------------------     <system.webServer>         <rewrite>             <rules>                 <rule name="CodeIgniter CI Rewrite" stopProcessing="true">                     <match url="^(.*)$" ignoreCase="false" />                     <conditions logicalGrouping="MatchAll">                         <add input="{R:1}" pattern="^(index\.php|logs/|images/|css/|js/|robots\.txt)" ignoreCase="false" negate="true" />                     </conditions>                     <action type="Rewrite" url="/index.php/{R:1}" />                 </rule>             </rules>         </rewrite> 와 같이 바뀌던데 문제는 이렇게 했을경우 /css /images 폴더에 있는것들이 바로 접근이 않되더군요 규칙은 간단히 /images /css /library index.php 파일로 접근한게 아닐경우에는 무조건 index.php 파일로 해당 정보를 그 뒤에 인자값으로 넘기라는 것입니다 읽어주셔서 감사합니다~ | |||
| 다음글 | 지정범위 이미지 (5) | ||
| 이전글 | 해외 사이트에 엑세스 하면 원래 느린가요? (4) | ||
| 
                                milosz
                                /
                                2013/09/23 11:06:09 /
                                추천
                                0
                             | 
여기 나와있는 룰들을 참고해보시기 바랍니다.