·设为首页收藏本站📧邮箱修改🎁免费下载专区💎积分✅卡密📒收藏夹👽聊天室
返回列表 发布新帖

[插件教程] [柒瑞]小视频伪静态短域名[柒瑞]小视频URL伪静态规则

74 1
发表于 2024-2-23 10:14:25 | 查看全部 阅读模式 | Google Chrome| Windows 10

马上注册,免费下载更多dz插件网资源。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
温馨提示

请先安装主应用:[柒瑞]小视频
及其组件:短域名URL伪静态
并需要在discuz后台[柒瑞]小视频的设定中开启伪静态域名才可生效

Apache Web Server(独立主机用户)

<IfModule mod_rewrite.c>
RewriteEngine On
########## x7ree_v URL rewite RULE 202112 begin
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/video$ $1/plugin.php?id=x7ree_v:x7ree_v&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/vfenlei_([0-9]+)$ $1/plugin.php?id=x7ree_v:x7ree_v&fenlei=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/video_([0-9]+)$ $1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=1&id_7ree=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/myvideo$ $1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/vshare$ $1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/vadmin$ $1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=4&%1
########## x7ree_v URL rewite RULE 202112 end
</IfModule>


Apache Web Server(虚拟主机用户)

RewriteEngine On
########## x7ree_v URL rewite RULE 202112 begin
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^video$ plugin.php?id=x7ree_v:x7ree_v&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^vfenlei_([0-9]+)$ plugin.php?id=x7ree_v:x7ree_v&fenlei=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^video_([0-9]+)$ plugin.php?id=x7ree_v:x7ree_v&code_7ree=1&id_7ree=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^myvideo$ plugin.php?id=x7ree_v:x7ree_v&code_7ree=3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^vshare$ plugin.php?id=x7ree_v:x7ree_v&code_7ree=2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^vadmin$ plugin.php?id=x7ree_v:x7ree_v&code_7ree=4&%1
########## x7ree_v URL rewite RULE 202112 end


IIS Web Server(独立主机用户)

稍后完善,请先咨询客服QQ获取规则详情;



IIS7 Web Server(独立主机用户)

稍后完善,请先咨询客服QQ获取规则详情;



Zeus Web Server

稍后完善,请先咨询客服QQ获取规则详情;



Nginx Web Server

rewrite ^([^.]*)/video$ $1/plugin.php?id=x7ree_v:x7ree_v last;
rewrite ^([^.]*)/vfenlei_([0-9]+)$ $1/plugin.php?id=x7ree_v:x7ree_v&fenlei=$2 last;
rewrite ^([^.]*)/video_([0-9]+)$ $1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=1&id_7ree=$2 last;
rewrite ^([^.]*)/myvideo$ $1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=3 last;
rewrite ^([^.]*)/vshare$ $1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=2 last;
rewrite ^([^.]*)/vadmin$ $1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=4 last;

if (!-e $request_filename) {
        return 404;
}
我要说一句 收起回复
一花一世界,一叶一追寻。一曲一场叹,一生为一人。
创宇盾启航版免费网站防御网站加速服务

评论1

机器人GPT-AILv.7 发表于 2024-2-23 10:14:46 | 查看全部
这段代码是用于实现小视频URL伪静态的规则。根据不同的Web服务器,有对应的配置代码。

对于Apache Web Server(独立主机用户)和Apache Web Server(虚拟主机用户):

1. 在你的主机的.htaccess文件中添加以下代码:
  1. RewriteEngine On
  2. ########## x7ree_v URL rewite RULE 202112 begin
  3. RewriteCond %{QUERY_STRING} ^(.*)$
  4. RewriteRule ^(.*)/video$ $1/plugin.php?id=x7ree_v:x7ree_v&%1
  5. RewriteCond %{QUERY_STRING} ^(.*)$
  6. RewriteRule ^(.*)/vfenlei_(.+)$ $1/plugin.php?id=x7ree_v:x7ree_v&fenlei=$2&%1
  7. RewriteCond %{QUERY_STRING} ^(.*)$
  8. RewriteRule ^(.*)/video_(.+)$ $1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=1&id_7ree=$2&%1
  9. RewriteCond %{QUERY_STRING} ^(.*)$
  10. RewriteRule ^(.*)/myvideo$ $1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=3&%1
  11. RewriteCond %{QUERY_STRING} ^(.*)$
  12. RewriteRule ^(.*)/vshare$ $1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=2&%1
  13. RewriteCond %{QUERY_STRING} ^(.*)$
  14. RewriteRule ^(.*)/vadmin$ $1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=4&%1
  15. ########## x7ree_v URL rewite RULE 202112 end
复制代码


对于Nginx Web服务器:

1. 在你的Nginx配置文件中的`server`块中添加以下代码:
  1. rewrite ^/(.*)/video$ /$1/plugin.php?id=x7ree_v:x7ree_v last;
  2. rewrite ^/(.*)/vfenlei_(.+)$ /$1/plugin.php?id=x7ree_v:x7ree_v&fenlei=$2 last;
  3. rewrite ^/(.*)/video_(.+)$ /$1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=1&id_7ree=$2 last;
  4. rewrite ^/(.*)/myvideo$ /$1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=3 last;
  5. rewrite ^/(.*)/vshare$ /$1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=2 last;
  6. rewrite ^/(.*)/vadmin$ /$1/plugin.php?id=x7ree_v:x7ree_v&code_7ree=4 last;

  7. if (!-e $request_filename) {
  8.     return 404;
  9. }
复制代码


请注意,这些代码可能需要根据你的具体环境进行适当的调整。另外,如果你使用的是其他Web服务器,可以向我提供更多信息,我将尽力提供相应的配置代码。
-- 来源:OpenAI ****GPT
我要说一句 收起回复

回复

 懒得打字嘛,点击右侧快捷回复【查看最新发布】   【应用商城享更多资源】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

图文热点
创宇盾启航版免费网站防御网站加速服务
投诉/建议联系

discuzaddons@vip.qq.com

未经授权禁止转载,复制和建立镜像,
如有违反,按照公告处理!!!
  • 联系QQ客服
  • 添加微信客服

联系DZ插件网微信客服|最近更新|Archiver|手机版|小黑屋|DZ插件网! ( 鄂ICP备20010621号-1 )|网站地图 知道创宇云防御

您的IP:3.145.56.150,GMT+8, 2024-11-22 03:30 , Processed in 0.262760 second(s), 88 queries , Gzip On, Redis On.

Powered by Discuz! X5.0 Licensed

© 2001-2024 Discuz! Team.

关灯 在本版发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表