QYKCMS系统默认启用的伪静态文件是 httpd.ini,在IIS7及以上环境下,通常是使用 web.config 文件来设置伪静态规则的,web.config伪静态规则如下:(请复制以下代码保存为 web.config,上传到站点根目录下,或直接在本文尾部下载该文件)
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="homepage"> <match url="^index.html$" /> <action type="Rewrite" url="/index.php" /> </rule> <rule name="no-rewrite" stopProcessing="true"> <match url="(^admin_system/|^images/|^js/|^res/|^upload/|^template/|^mobile/|^install/)(.*)" /> <action type="Rewrite" url="{R:0}" /> </rule> <rule name="class-index 1"> <match url="^([a-zA-Z0-9]+)/?$" /> <action type="Rewrite" url="/index.php?log={R:1}" /> </rule> <rule name="class-index 2"> <match url="^([a-zA-Z0-9]+)/index.html$" /> <action type="Rewrite" url="/index.php?log={R:1}" /> </rule> <rule name="class-index-page"> <match url="^([a-zA-Z0-9]+)/index_([0-9]+).html$" /> <action type="Rewrite" url="/index.php?log={R:1}&page={R:2}" /> </rule> <rule name="class-scat"> <match url="^([a-zA-Z0-9]+)/scat_([0-9]+).html$" /> <action type="Rewrite" url="/index.php?log={R:1}&scat={R:2}" /> </rule> <rule name="class-scat-page"> <match url="^([a-zA-Z0-9]+)/scat_([0-9]+)_([0-9]+).html$" /> <action type="Rewrite" url="/index.php?log={R:1}&scat={R:2}&page={R:3}" /> </rule> <rule name="class-lcat"> <match url="^([a-zA-Z0-9]+)/lcat_([0-9]+).html$" /> <action type="Rewrite" url="/index.php?log={R:1}&lcat={R:2}" /> </rule> <rule name="class-lcat-page"> <match url="^([a-zA-Z0-9]+)/lcat_([0-9]+)_([0-9]+).html$" /> <action type="Rewrite" url="/index.php?log={R:1}&lcat={R:2}&page={R:3}" /> </rule> <rule name="class-article"> <match url="^([a-zA-Z0-9]+)/article_([0-9]+).html$" /> <action type="Rewrite" url="/index.php?log={R:1}&id={R:2}" /> </rule> <rule name="class-article-page"> <match url="^([a-zA-Z0-9]+)/article_([0-9]+)_([0-9]+).html$" /> <action type="Rewrite" url="/index.php?log={R:1}&id={R:2}&page={R:3}" /> </rule> <rule name="class-search"> <match url="^([a-zA-Z0-9]+)/so?(.*)" /> <action type="Rewrite" url="/index.php?log={R:1}&{R:2}" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
下载 web.config文件:web_config.zip