2011-03-05 4 views

답변

0

감사합니다, 다나, 그러나 여기 내 web.config 파일에 추가 결국 무슨 ...

<system.webServer> 
    <rewrite> 
    <rules> 
     <rule name="Redirect to WWW" stopProcessing="true"> 
     <match url=".*" /> 
     <conditions> 
      <add input="{HTTP_HOST}" pattern="^www.mysite.com$" /> 
     </conditions> 
     <action type="Redirect" url="http://mysite.com/{R:0}" redirectType="Permanent" /> 
     </rule> 
    </rules> 
    </rewrite> 
</system.webServer> 
2
<if header="host" match="www.yoursite.com" /> 
    <redirect url="^(.+)$" to="http://yoursite.com$1" /> 
</if> 
관련 문제