立即注册找回密码

草根资源吧

官方指定联系方式

工作时间: 周一到周五早上09:00-11:00, 下午03:00-05:00, 晚上08:30-10:30(周六、日休息)
点击这里给我发消息 点击这里给我发消息
QQ: 280520150地址:河南郑州金水区  邮箱: lianxun888@163.com

商家活动/活动推广 伪静态规则

[复制链接]
  • TA的每日心情
    开心
    2018-7-1 22:44
  • 签到天数: 16 天

    [LV.4]偶尔看看III

    发表于 2018-5-13 10:51:30 | 显示全部楼层 |阅读模式
    如不知道自己使用的是哪种静态规则或不知道怎么添加,请咨询您的空间商。
    也可以参考你的规则文件里的规则写法,使用对应的规则
    如有错误,请联系QQ客服(不在线先留言,并先离线发送您的规则文件过来)。

    添加规则后没生效,可尝试重启服务器。

    Apache Web Server规则

    # 商家活动
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd\.html$ plugin.php?id=xlwsq_sjhd
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_sjhd&a=$1&b=$2&bc=$3&sc=$4&zt=$5
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_sjhd&a=$1&b=$2&bc=$3&sc=$4&zt=$5&page=$6
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ plugin.php?id=xlwsq_sjhd&a=$1&b=$2&bc=$3&sc=$4&zt=$5&tj=tj
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_([0-9]+)\.html$ plugin.php?id=xlwsq_sjhd&mod=view&sid=$1
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_([0-9]+)_yuyuelist\.html$ plugin.php?id=xlwsq_sjhd&mod=yuyuelist&sid=$1
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_shoplist\.html$ plugin.php?id=xlwsq_sjhd&mod=shoplist
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_shoplist_([0-9]+)\.html$ plugin.php?id=xlwsq_sjhd&mod=shoplist&page=$1
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_cominfo_([0-9]+)\.html$ plugin.php?id=xlwsq_sjhd&mod=cominfo&sjuid=$1
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_shopprolist_([0-9]+)\.html$ plugin.php?id=xlwsq_sjhd&mod=shopprolist&sjuid=$1
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_user\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_user_add\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=add
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_user_favorites\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=favorites
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_user_userinfo\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=userinfo
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_user_yuyue\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=yuyue
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_user_xfjl\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=xfjl
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_user_myshoplist\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=myshoplist
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_user_userinfoadd\.html$ plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=userinfoadd
    RewriteCond %{QUERY_STRING} ^(.*)$
    RewriteRule ^sjhd_shoplist_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_sjhd&mod=shoplist&a=$1&b=$2&bc=$3&sc=$4



    IIS Web Server规则 iis6 (添加后,重启下IIS)

    RewriteRule ^(.*)/sjhd\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd
    RewriteRule ^(.*)/sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&a=$2&b=$3&bc=$4&sc=$5&zt=$6
    RewriteRule ^(.*)/sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&a=$2&b=$3&bc=$4&sc=$5&zt=$6&page=$7
    RewriteRule ^(.*)/sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&a=$2&b=$3&bc=$4&sc=$5&zt=$6&tj=tj
    RewriteRule ^(.*)/sjhd_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&mod=view&sid=$2
    RewriteRule ^(.*)/sjhd_([0-9]+)_yuyuelist\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&mod=yuyuelist&sid=$2
    RewriteRule ^(.*)/sjhd_shoplist\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&mod=shoplist
    RewriteRule ^(.*)/sjhd_shoplist_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&mod=shoplist&page=$2
    RewriteRule ^(.*)/sjhd_cominfo_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&mod=cominfo&sjuid=$2
    RewriteRule ^(.*)/sjhd_shopprolist_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&mod=shopprolist&sjuid=$2
    RewriteRule ^(.*)/sjhd_user\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user
    RewriteRule ^(.*)/sjhd_user_add\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=add
    RewriteRule ^(.*)/sjhd_user_favorites\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=favorites
    RewriteRule ^(.*)/sjhd_user_userinfo\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=userinfo
    RewriteRule ^(.*)/sjhd_user_yuyue\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=yuyue
    RewriteRule ^(.*)/sjhd_user_xfjl\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=xfjl
    RewriteRule ^(.*)/sjhd_user_myshoplist\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=myshoplist
    RewriteRule ^(.*)/sjhd_user_userinfoadd\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&p=userinfoadd
    RewriteRule ^(.*)/sjhd_shoplist_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_sjhd&mod=shoplist&a=$2&b=$3&bc=$4&sc=$5



    Nginx Web Server规则

    rewrite ^([^\.]*)/sjhd.html$ $1/plugin.php?id=xlwsq_sjhd last;
    rewrite ^([^\.]*)/sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&a=$2&b=$3&bc=$4&sc=$5&zt=$6 last;
    rewrite ^([^\.]*)/sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&a=$2&b=$3&bc=$4&sc=$5&zt=$6&page=$7 last;
    rewrite ^([^\.]*)/sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&a=$2&b=$3&bc=$4&sc=$5&zt=$6&tj=tj last;
    rewrite ^([^\.]*)/sjhd_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&mod=view&sid=$2 last;
    rewrite ^([^\.]*)/sjhd_([0-9]+)_yuyuelist\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&mod=yuyuelist&sid=$2 last;
    rewrite ^([^\.]*)/sjhd_shoplist\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&mod=shoplist last;
    rewrite ^([^\.]*)/sjhd_shoplist_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&mod=shoplist&page=$2 last;
    rewrite ^([^\.]*)/sjhd_cominfo_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&mod=cominfo&sjuid=$2 last;
    rewrite ^([^\.]*)/sjhd_shopprolist_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd&mod=shoplist&sjuid=$2 last;
    rewrite ^([^\.]*)/sjhd_user\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user last;
    rewrite ^([^\.]*)/sjhd_user_add\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=add last;
    rewrite ^([^\.]*)/sjhd_user_favorites\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=favorites last;
    rewrite ^([^\.]*)/sjhd_user_userinfo\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=userinfo last;
    rewrite ^([^\.]*)/sjhd_user_yuyue\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=yuyue last;
    rewrite ^([^\.]*)/sjhd_user_xfjl\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=xfjl last;
    rewrite ^([^\.]*)/sjhd_user_myshoplist\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=myshoplist last;
    rewrite ^([^\.]*)/sjhd_user_userinfoadd\.html$ $1/plugin.php?id=xlwsq_sjhd:xlwsq_sjhd_user&p=userinfoadd last;
    rewrite ^([^\.]*)/sjhd_shoplist_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_sjhd&mod=shoplist&a=$2&b=$3&bc=$4&sc=$5 last;




    IIS7规则 (添加后,重启下IIS)

    <rule name="xlwsqsjhd1">
    <match url="^(.*/)*sjhd.html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd" />
    </rule>
    <rule name="xlwsqsjhd2">
    <match url="^(.*/)*sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&amp;a={R:2}&amp;b={R:3}&amp;bc={R:4}&amp;sc={R:5}&amp;zt={R:6}" />
    </rule>
    <rule name="xlwsqsjhd3">
    <match url="^(.*/)*sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&amp;a={R:2}&amp;b={R:3}&amp;bc={R:4}&amp;sc={R:5}&amp;zt={R:6}&amp;page={R:7}" />
    </rule>
    <rule name="xlwsqsjhd4">
    <match url="^(.*/)*sjhd_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj.html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&amp;a={R:2}&amp;b={R:3}&amp;bc={R:4}&amp;sc={R:5}&amp;zt={R:6}&amp;tj=tj" />
    </rule>
    <rule name="xlwsqsjhd5">
    <match url="^(.*/)*sjhd_([0-9]+).html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&amp;mod=view&amp;sid={R:2}" />
    </rule>
    <rule name="xlwsqsjhd6">
    <match url="^(.*/)*sjhd_([0-9]+)_yuyuelist.html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&amp;mod=yuyuelist&amp;sid={R:2}" />
    </rule>
    <rule name="xlwsqsjhd7">
    <match url="^(.*/)*sjhd_shoplist.html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&amp;mod=shoplist" />
    </rule>
    <rule name="xlwsqsjhd8">
    <match url="^(.*/)*sjhd_shoplist_([0-9]+).html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&amp;mod=shoplist&amp;page={R:2}" />
    </rule>
    <rule name="xlwsqsjhd9">
    <match url="^(.*/)*sjhd_cominfo_([0-9]+).html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&amp;mod=cominfo&amp;sjuid={R:2}" />
    </rule>
    <rule name="xlwsqsjhd10">
    <match url="^(.*/)*sjhd_shopprolist_([0-9]+).html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd&amp;mod=shoplist&amp;sjuid={R:2}" />
    </rule>
    <rule name="xlwsqsjhd11">
    <match url="^(.*/)*sjhd_user.html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd:xlwsq_sjhd_user" />
    </rule>
    <rule name="xlwsqsjhd12">
    <match url="^(.*/)*sjhd_user_add.html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&amp;p=add" />
    </rule>
    <rule name="xlwsqsjhd13">
    <match url="^(.*/)*sjhd_user_favorites.html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&amp;p=favorites" />
    </rule>
    <rule name="xlwsqsjhd14">
    <match url="^(.*/)*sjhd_user_userinfo.html\?*(.*)$" />
    <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_sjhd:xlwsq_sjhd_user&amp;p=userinfo" />

    本帖最近访客
    回复

    使用道具 举报

    使用高级回帖 (可批量传图、插入视频等)

    发表回复

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则   Ctrl + Enter 快速发布  

    发帖时请遵守我国法律,网站会将有关你发帖内容、时间以及发帖IP地址等记录保留,只要接到合法请求,即会将信息提供给有关政府机构。
    Powered by Discuz! X3.2 豫ICP备17024477号-1   
    Copyright © 2008-2016 www.sxpxb.net All Rights Reserved.
    快速回复 返回顶部 返回列表