使用web.config文件将php url重定向到IIS7中的shtml

时间:2013-09-20 02:17:12

标签: php redirect iis-7

每次我尝试使用index.php重定向路径时,我最近构建的整个网站都会关闭。

有关导致问题的原因的任何建议?

提前谢谢!

代码:

?xml version="1.0" encoding="UTF-8"?>
<configuration>
     <system.webServer>
         <defaultDocument>
             <files>
                 <add value="index.shtml" />
             </files>
         </defaultDocument>
     </system.webServer>
     <location path="index.php/terms-of-use/">
          <system.webServer>
             <httpRedirect enabled="true" destination="http://www.nortridge.com/legal-disclaimer.shtml" exactDestination="true" httpResponseStatus="Permanent" />
          </system.webServer>
     </location>
</configuration>

0 个答案:

没有答案