我们强烈推荐使用apache环境,它默认就能支持伪静态
如果你非得要用IIS的话,IIS默认是不支持伪静态的, 表现的情况就是无法进后台.也无法访问内容页与其它相关的页面.
这个时候,请修改服务器配置信息,使他能支持伪静态之后,再使用以下伪静态规则
<rewrite> <rules> <rule name="OrgPage" stopProcessing="true"> <match url="^(.*)$" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" pattern="^(.*)$" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php/{R:1}" /> </rule> </rules> </rewrite>
联系电话:13915792995 @何泽华 | 湘ICP备18005351号-2