最新公告
  • 晴天seo资源站,非精品不收录!立即加入我们
  • 帝国cms7.2默认伪静态规则提供apache\IIS6\IIS7\Nginx

     apache下的.htaccess:

    RewriteEngine On
    ErrorDocument 404 /404.html
    Rewritebase /
    #信息列表
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^listinfo-(.+?)-(.+?)\.html$ /e/action/ListInfo/index\.php\?classid=$1&page=$2
    #信息内容页
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^showinfo-(.+?)-(.+?)-(.+?)\.html$ /e/action/ShowInfo\.php\?classid=$1&id=$2&page=$3
    #标题分类列表页
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^infotype-(.+?)-(.+?)\.html$ /e/action/InfoType/index\.php\?ttid=$1&page=$2
    #TAGS信息列表页
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^tags-(.+?)-(.+?)\.html$ /e/tags/index\.php\?tagname=$1&page=$2
    #评论列表页
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)\.html$  /e/pl/index\.php\?doaction=$1&classid=$2&id=$3&page=$4&myorder=$5&tempid=$6

    IIS6下的httpd.ini:

    [ISAPI_Rewrite]
    # 3600 = 1 hour
    CacheClockRate 3600
    RepeatLimit 32
    #信息列表
    RewriteRule ^(.*)listinfo-(.+?)-(.+?)\.html$ $1/e/action/ListInfo/index\.php\?classid=$2&page=$3
    #信息内容页
    RewriteRule ^(.*)showinfo-(.+?)-(.+?)-(.+?)\.html$ $1/e/action/ShowInfo\.php\?classid=$2&id=$3&page=$4
    #标题分类列表页
    RewriteRule ^(.*)infotype-(.+?)-(.+?)\.html$ $1/e/action/InfoType/index\.php\?ttid=$2&page=$3
    #TAGS信息列表页
    RewriteRule ^(.*)tags-(.+?)-(.+?)\.html$ $1/e/tags/index\.php\?tagname=$2&page=$3
    #评论列表页
    RewriteRule ^(.*)comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)\.html$  $1/e/pl/index\.php\?doaction=$2&classid=$3&id=$4&page=$5&myorder=$6&tempid=$7
    #搜索伪静态

    IIS7下的web.config:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <configuration>
    <system.webServer>
    <!–帝国7.2默认规则 IIS7的rule name不能重复相同–>
    <rewrite>
    <rules>
    <rule name=”listinfo”>
    <match url=”^(.*/)*listinfo-(.+?)-(.+?).html\?*(.*)$” />
    <action type=”Rewrite” url=”{R:1}/e/action/ListInfo/index.php\?classid={R:2}&amp;page={R:3}” />
    </rule>
    <rule name=”showinfo”>
    <match url=”^(.*/)*showinfo-(.+?)-(.+?)-(.+?).html\?*(.*)$” />
    <action type=”Rewrite” url=”{R:1}/e/action/ShowInfo.php\?classid={R:2}&amp;id={R:3}&amp;page={R:4}” />
    </rule>
    <rule name=”infotype”>
    <match url=”^(.*/)*infotype-(.+?)-(.+?).html\?*(.*)$” />
    <action type=”Rewrite” url=”{R:1}/e/action/InfoType/index.php\?ttid={R:2}&amp;page={R:3}” />
    </rule>
    <rule name=”tags”>
    <match url=”^(.*/)*tags-(.+?)-(.+?).html\?*(.*)$” />
    <action type=”Rewrite” url=”{R:1}/e/tags/index.php\?tagname={R:2}&amp;page={R:3}” />
    </rule>
    <rule name=”comment”>
    <match url=”^(.*/)*comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?).html\?*(.*)$” />
    <action type=”Rewrite” url=”{R:1}/e/pl/index.php\?doaction={R:2}&amp;={R:3}&amp;={R:4}&amp;page={R:5}&amp;myorder={R:6}&amp;tempid={R:7}” />
    </rule>
    </rules>
    </rewrite>
    </system.webServer>  
    </configuration>

    Nginx下伪静态:

    rewrite ^([^\.]*)/listinfo-(.+?)-(.+?)\.html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last;
    rewrite ^([^\.]*)/showinfo-(.+?)-(.+?)-(.+?)\.html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last;
    rewrite ^([^\.]*)/infotype-(.+?)-(.+?)\.html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last;
    rewrite ^([^\.]*)/tags-(.+?)-(.+?)\.html$ $1/e/tags/index.php?tagname=$2&page=$3 last;
    rewrite ^([^\.]*)/comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)\.html$  $1/e/pl/index\.php\?doaction=$2&classid=$3&id=$4&page=$5&myorder=$6&tempid=$7 last;
    if (!-e $request_filename) {
    return 404;
    }

     

    weijingtai.rar

    18bc6b60c77320229aaf797843e300e0.rar (1.80 KB)
    晴天seo
    晴天精品资源 » 帝国cms7.2默认伪静态规则提供apache\IIS6\IIS7\Nginx

    常见问题FAQ

    免费下载或者VIP会员专享资源能否直接商用?
    本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
    提示下载完但解压或打开不了?
    最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。若排除这种情况,可在对应资源底部留言,或 联络我们.。
    找不到素材资源介绍文章里的示例图片?
    对于PPT,KEY,Mockups,APP,网页模版等类型的素材,文章内用于介绍的图片通常并不包含在对应可供下载素材包内。这些相关商业图片需另外购买,且本站不负责(也没有办法)找到出处。 同样地一些字体文件也是这种情况,但部分素材会在素材包内有一份字体下载链接清单。
    晴天seo
    一个高级程序员模板开发平台
    • 114会员总数(位)
    • 408资源总数(个)
    • 0本周发布(个)
    • 0 今日发布(个)
    • 1344稳定运行(天)

    晴天seo精品资源,优质插件

    开通会员 了解详情