用QQ帐号登录应用中心QQ登录
Discuz! 应用中心

影视点评/影视分享伪静态规则

如不知道自己使用的是哪种静态规则或不知道怎么添加,请咨询您的空间商。
也可以参考你的规则文件里的规则写法,使用对应的规则
如有错误,请联系QQ客服(不在线先留言,并先离线发送您的规则文件过来)。

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


Apache Web Server规则
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie\.html$ plugin.php?id=xlwsq_ysdp&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_ysdp&fl=$1&lx=$2&dq=$3&yy=$4&nf=$5&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_ysdp&fl=$1&lx=$2&dq=$3&yy=$4&nf=$5&page=$6&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ plugin.php?id=xlwsq_ysdp&fl=$1&lx=$2&dq=$3&yy=$4&nf=$5&tj=tj&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_hot\.html$ plugin.php?id=xlwsq_ysdp&fl=$1&lx=$2&dq=$3&yy=$4&nf=$5&hot=hot&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie_([0-9]+)\.html$ plugin.php?id=xlwsq_ysdp&mod=view&sid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie_([0-9]+)_pic\.html$ plugin.php?id=xlwsq_ysdp&mod=pic&sid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie_([0-9]+)_play_([0-9]+)\.html$ plugin.php?id=xlwsq_ysdp&mod=play&sid=$1&vid=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie_user\.html$ plugin.php?id=xlwsq_ysdp:xlwsq_ysdp_user&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie_user_add\.html$ plugin.php?id=xlwsq_ysdp:xlwsq_ysdp_user&p=add&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie_user_favorites\.html$ plugin.php?id=xlwsq_ysdp:xlwsq_ysdp_user&p=favorites&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie_ztlist\.html$ plugin.php?id=xlwsq_ysdp&mod=zhuantilist&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie_ztlist_([0-9]+)\.html$ plugin.php?id=xlwsq_ysdp&mod=zhuantilist&page=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie_ztlist_view\.html$ plugin.php?id=xlwsq_ysdp&mod=zhuantilist&paixu=view&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^movie_zt_([0-9]+)\.html$ plugin.php?id=xlwsq_ysdp&mod=zhuantiview&ztid=$1&%1


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

RewriteRule ^(.*)/movie\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp
RewriteRule ^(.*)/movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp&fl=$2&lx=$3&dq=$4&yy=$5&nf=$6
RewriteRule ^(.*)/movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp&fl=$2&lx=$3&dq=$4&yy=$5&nf=$6&page=$7
RewriteRule ^(.*)/movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp&fl=$2&lx=$3&dq=$4&yy=$5&nf=$6&tj=tj
RewriteRule ^(.*)/movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_hot\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp&fl=$2&lx=$3&dq=$4&yy=$5&nf=$6&hot=hot
RewriteRule ^(.*)/movie_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp&mod=view&sid=$2
RewriteRule ^(.*)/movie_([0-9]+)_pic\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp&mod=pic&sid=$2
RewriteRule ^(.*)/movie_([0-9]+)_play_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp&mod=play&sid=$2&vid=$3
RewriteRule ^(.*)/movie_user\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp:xlwsq_ysdp_user
RewriteRule ^(.*)/movie_user_add\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp:xlwsq_ysdp_user&p=add
RewriteRule ^(.*)/movie_user_favorites\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp:xlwsq_ysdp_user&p=favorites
RewriteRule ^(.*)/movie_ztlist\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp&mod=zhuantilist
RewriteRule ^(.*)/movie_ztlist_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp&mod=zhuantilist&page=$2
RewriteRule ^(.*)/movie_ztlist_view\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp&mod=zhuantilist&paixu=view
RewriteRule ^(.*)/movie_zt_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_ysdp&mod=zhuantiview&ztid=$2



Nginx Web Server规则 (如无效,请尝试重启)

rewrite ^([^\.]*)/movie\.html$ $1/plugin.php?id=xlwsq_ysdp last;
rewrite ^([^\.]*)/movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_ysdp:xlwsq_ysdp&fl=$2&lx=$3&dq=$4&yy=$5&nf=$6 last;
rewrite ^([^\.]*)/movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)([0-9]+)\.html$ $1/plugin.php?id=xlwsq_ysdp:xlwsq_ysdp&fl=$2&lx=$3&dq=$4&yy=$5&nf=$6&page=$7 last;
rewrite ^([^\.]*)/movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj\.html$ $1/plugin.php?id=xlwsq_ysdp:xlwsq_ysdp&fl=$2&lx=$3&dq=$4&yy=$5&nf=$6&tj=tj last;
rewrite ^([^\.]*)/movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_hot\.html$ $1/plugin.php?id=xlwsq_ysdp:xlwsq_ysdp&fl=$2&lx=$3&dq=$4&yy=$5&nf=$6&hot=hot last;
rewrite ^([^\.]*)/movie_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_ysdp&mod=view&sid=$2 last;
rewrite ^([^\.]*)/movie_([0-9]+)_pic\.html$ $1/plugin.php?id=xlwsq_ysdp&mod=pic&sid=$2 last;
rewrite ^([^\.]*)/movie_([0-9]+)_play_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_ysdp&mod=play&sid=$2&vid=$3 last;
rewrite ^([^\.]*)/movie_user\.html$ $1/plugin.php?id=xlwsq_ysdp:xlwsq_ysdp_user last;
rewrite ^([^\.]*)/movie_user_add\.html$ $1/plugin.php?id=xlwsq_ysdp:xlwsq_ysdp_user&p=add last;
rewrite ^([^\.]*)/movie_user_favorites\.html$ $1/plugin.php?id=xlwsq_ysdp:xlwsq_ysdp_user&p=favorites last;
rewrite ^([^\.]*)/movie_ztlist\.html$ $1/plugin.php?id=xlwsq_ysdp&mod=zhuantilist last;
rewrite ^([^\.]*)/movie_ztlist_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_ysdp&mod=zhuantilist&page=$2 last;
rewrite ^([^\.]*)/movie_ztlist_view\.html$ $1/plugin.php?id=xlwsq_ysdp&mod=zhuantilist&paixu=view last;
rewrite ^([^\.]*)/movie_zt_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_ysdp&mod=zhuantiview&ztid=$2 last;





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

<rule name=\"xlwsqmovie1\">
<match url=\"^(.*/)*movie.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp\" />
</rule>
<rule name=\"xlwsqmovie2\">
<match url=\"^(.*/)*movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp&amp;fl={R:2}&amp;lx={R:3}&amp;dq={R:4}&amp;yy={R:5}&amp;nf={R:6}\" />
</rule>
<rule name=\"xlwsqmovie3\">
<match url=\"^(.*/)*movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp&amp;fl={R:2}&amp;lx={R:3}&amp;dq={R:4}&amp;yy={R:5}&amp;nf={R:6}&amp;page={R:7}\" />
</rule>
<rule name=\"xlwsqmovie4\">
<match url=\"^(.*/)*movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_tj.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp&amp;fl={R:2}&amp;lx={R:3}&amp;dq={R:4}&amp;yy={R:5}&amp;nf={R:6}&amp;tj=tj\" />
</rule>
<rule name=\"xlwsqmovie5\">
<match url=\"^(.*/)*movie_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_hot.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp&amp;fl={R:2}&amp;lx={R:3}&amp;dq={R:4}&amp;yy={R:5}&amp;nf={R:6}&amp;hot=hot\" />
</rule>
<rule name=\"xlwsqmovie6\">
<match url=\"^(.*/)*movie_([0-9]+).html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp&amp;mod=view&amp;sid={R:2}\" />
</rule>
<rule name=\"xlwsqmovie7\">
<match url=\"^(.*/)*movie_([0-9]+)_pic.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp&amp;mod=pic&amp;sid={R:2}\" />
</rule>
<rule name=\"xlwsqmovie8\">
<match url=\"^(.*/)*movie_([0-9]+)_play_([0-9]+).html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp&amp;mod=play&amp;sid={R:2}&amp;vid={R:3}\" />
</rule>
<rule name=\"xlwsqmovie9\">
<match url=\"^(.*/)*movie_user.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp:xlwsq_ysdp_user\" />
</rule>
<rule name=\"xlwsqmovie10\">
<match url=\"^(.*/)*movie_user_add.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp:xlwsq_ysdp_user&amp;p=add\" />
</rule>
<rule name=\"xlwsqmovie11\">
<match url=\"^(.*/)*movie_user_favorites.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp:xlwsq_ysdp_user&amp;p=favorites\" />
</rule>
<rule name=\"xlwsqxiazai12\">
<match url=\"^(.*/)*movie_ztlist.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp&amp;mod=zhuantilist\" />
</rule>
<rule name=\"xlwsqxiazai13\">
<match url=\"^(.*/)*movie_ztlist_([0-9]+).html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp&amp;mod=zhuantilist&amp;page={R:2}\" />
</rule>
<rule name=\"xlwsqxiazai14\">
<match url=\"^(.*/)*movie_zt_([0-9]+).html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp&amp;mod=zhuantiview&amp;ztid={R:2}\" />
</rule>
<rule name=\"xlwsqxiazai15\">
<match url=\"^(.*/)*movie_ztlist_view.html\?*(.*)$\" />
<action type=\"Rewrite\" url=\"{R:1}/plugin.php\?id=xlwsq_ysdp&amp;mod=zhuantilist&amp;paixu=view\" />
</rule>



如修改默认伪静态规则名(movie),以下静态链接里的 movie也要进行相应修改。(等号右边动态xlwsq_ysdp不要改动)
例子:(把movie改为 ysdp)
原句:RewriteRule ^movie\.html$ plugin.php?id=xlwsq_ysdp
改后:RewriteRule ^ysdp\.html$ plugin.php?id=xlwsq_ysdp

提醒:修改的名称,不要和其它规则相同

Discuz!交流社区 | Discuz!程序下载 | Discuz!使用教程 | 我是Discuz!开发者 | 我是Discuz!分销商

Copyright ©2024Dismall.comAll Rights Reserved. 皖ICP备16010102号-4 增值电信业务经营许可证:皖B2-20200047

违法网站请勿向我司工作人员及应用开发者发起任何形式的服务请求,严禁使用Discuz!应用中心提供的应用从事任何非法活动

应用中心客服80056365 应用中心客服微信扫一扫 有偿服务客服1453650 有偿服务客服微信扫一扫

  应用中心操作、授权恢复等使用问题,联系应用中心客服|Discuz! 安装、升级、问题排查、定制,联系有偿服务客服

返回顶部