
用IIS安装的老是说后台登录不进去,或者不能伪静态
把以下代码复制到web.config里就可以了,适用IIS7以上,我这个是IIS8测试的
IIS6的win2003系统就别看了,抓紧升级2008r2或者2012,即使不用伪静态也都不安全
测试地址 http://test.alaiyeshi.net/admin.php admin admin123
http://test.alaiyeshi.net/cms/show-17.html
<?xml version="1.0" encoding="UTF-8"?>  
<configuration>  
  <system.webServer>  
    <rewrite>  
      <rules>  
        <rule name="WPurls" enabled="true" stopProcessing="true">  
          <match url=".*" />  
          <conditions logicalGrouping="MatchAll">  
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />  
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />  
          </conditions>  
          <action type="Rewrite" url="index.php/{R:0}" />  
        </rule>  
      </rules>  
    </rewrite>  
  </system.webServer>  
</configuration>其它用IIS的用户可以测试一下.
一般情况 是没问题的.但也有个别服务器.始终 不生效. IIS太难搞了