艾时利(楼主) 9

这么好的程序。应该有很多人来参与的啊。

是不是现在建站不景气的原因啊

发布于 2017-09-29 10:07 0 回复 举报
iCMSdev 10

@艾时利 标签链接是什么样
看你的规则好像是这样子的链接 www.aaaa.com/123123.html

那你的规则要对应

<rule name="标签规则" stopProcessing="true">
<match url="^(\d+).html$" ignoreCase="false" />
<action type="Rewrite" url="tag.php?id={R:1}" appendQueryString="false" />
</rule>

或者你把栏目里的标签规则改成
/tag/{ID}.{EXT}

发布于 2017-09-29 16:41 0 回复 举报
艾时利(楼主) 11

还是不行、按照你的说明设置。最后访问的地址是www.aaaa.com/tag/123123.html。是可以访问了,但是伪静态的结果却是ID为:123123的新闻内容

艾时利(楼主) 12

用户中心的注册登录等所有的也都不行。全部是用DOCS里面的nginx规则转过来的,但是也都是不能访问。不过这个倒不是重点 。暂时还不需要会员这快。啥时抽个空帮出一个IIS的伪静态吧 ,老大

发布于 2017-09-30 17:00 0 回复 举报
iCMSdev 13

@艾时利 你把全部规则发出来啊或者QQ联系我

发布于 2017-10-01 09:07 0 回复 举报
艾时利(楼主) 14

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="已导入的规则 1" stopProcessing="true">
<match url="^(\w+)/$" ignoreCase="false" />
<action type="Rewrite" url="category.php?dir={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 2" stopProcessing="true">
<match url="^(\w+)/index.html$" ignoreCase="false" />
<action type="Rewrite" url="category.php?dir={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 3" stopProcessing="true">
<match url="^(\w+)/index(\d+).html$" ignoreCase="false" />
<action type="Rewrite" url="category.php?dir={R:1}&page={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 4" stopProcessing="true">
<match url="^\w+/(\d+).html$" ignoreCase="false" />
<action type="Rewrite" url="article.php?id={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 5" stopProcessing="true">
<match url="^\w+/(\d+)
(\d+).html$" ignoreCase="false" />
<action type="Rewrite" url="article.php?id={R:1}&p={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 1-2">
<match url="^"^/user$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user" appendQueryString="false" />
</rule>
<rule name="已导入的规则 2-2">
<match url="^"^/user/home$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=home" appendQueryString="false" />
</rule>
<rule name="已导入的规则 3-2">
<match url="^"^/user/manage/(\w+)$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=manage&pg={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 4-2">
<match url="^"^/user/manage$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=manage" appendQueryString="false" />
</rule>
<rule name="已导入的规则 5-2">
<match url="^"^/user/publish$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=manage&pg=publish" appendQueryString="false" />
</rule>
<rule name="已导入的规则 6-1">
<match url="^"^/user/article$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=manage&pg=article" appendQueryString="false" />
</rule>
<rule name="已导入的规则 7-1">
<match url="^"^/user/category$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=manage&pg=category" appendQueryString="false" />
</rule>
<rule name="已导入的规则 8-1">
<match url="^"^/user/comment$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=manage&pg=comment" appendQueryString="false" />
</rule>
<rule name="已导入的规则 9-1">
<match url="^"^/user/inbox/(\d+)$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=manage&pg=inbox&user={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 10">
<match url="^"^/user/inbox$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=manage&pg=inbox" appendQueryString="false" />
</rule>
<rule name="已导入的规则 11">
<match url="^"^/user/profile/(\w+)$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=profile&pg={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 12">
<match url="^"^/user/profile$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=profile" appendQueryString="false" />
</rule>
<rule name="已导入的规则 13">
<match url="^"^/user/login/(\w+)$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=login&sign={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 14">
<match url="^"^/user/login$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=login" appendQueryString="false" />
</rule>
<rule name="已导入的规则 15">
<match url="^"^/user/register$"" ignoreCase="false" />
<action type="Rewrite" url="./public/api.php?app=user&do=register" appendQueryString="false" />
</rule>
<rule name="已导入的规则 16">
<match url="^"^/user/logout$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=logout" appendQueryString="false" />
</rule>
<rule name="已导入的规则 17">
<match url="^"^/user/findpwd$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=findpwd" appendQueryString="false" />
</rule>
<rule name="已导入的规则 18">
<match url="^"^/user/(\d+)/(\w+)/$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do={R:2}&uid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 19">
<match url="^"^/user/(\d+)/$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=home&uid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 20">
<match url="^"^/user/(\d+)/(\d+)/$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=home&uid={R:1}&cid={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 21">
<match url="^"^/user/(\d+)/favorite/(\d+)/$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=user&do=favorite&uid={R:1}&id={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 22">
<match url="^"^/api$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php" />
</rule>
<rule name="已导入的规则 23">
<match url="^"^/comment$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=comment" appendQueryString="false" />
</rule>
<rule name="已导入的规则 24">
<match url="^"^/search$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=search" appendQueryString="false" />
</rule>
<rule name="已导入的规则 25">
<match url="^"^/public/(\w+)$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=public&do={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 26">
<match url="^"^/favorite$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=favorite" appendQueryString="false" />
</rule>
<rule name="已导入的规则 27">
<match url="^"^/favorite/(\d+)/$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=favorite&id={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 28">
<match url="^"^/forms$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=forms" appendQueryString="false" />
</rule>
<rule name="已导入的规则 29">
<match url="^"^/forms/(\w+)$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=forms&do={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 30">
<match url="^"^/forms/(\d+)/$"" ignoreCase="false" />
<action type="Rewrite" url="public/api.php?app=forms&id={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 1-3" stopProcessing="true">
<match url="^tag/(\d+)$" ignoreCase="false" />
<action type="Rewrite" url="tag.php?id={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 2-3" stopProcessing="true">
<match url="^tag/(\d+)/index.html$" ignoreCase="false" />
<action type="Rewrite" url="tag.php?id={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 3-3" stopProcessing="true">
<match url="^tag/(\d+)/index_(\d+).html$" ignoreCase="false" />
<action type="Rewrite" url="tag.php?id={R:1}&page={R:2}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>



以上是我的规则。

现在这个规则,新闻列表页正常,新闻页正常,tag伪静态的结果却是ID为:123123的新闻内容。其他的规则全都是404错误了

另外还有个问题就是这个评论验证码。第一次总是不显示,点击下就可以了。群里也有个朋友也有这个问题,他好像是nginx环境。我是IIS7

发布于 2017-10-01 14:40 0 回复 举报
验证码 换一张
取 消