设为首页收藏本站

东北网络社区

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1342|回复: 0

[其他类别] phpyun,宝塔面板,伪静态规则

[复制链接]
发表于 2021-5-16 14:50:50 | 显示全部楼层 |阅读模式
if (!-f $request_filename){
set $rule_0 1$rule_0;
}
if (!-d $request_filename){
set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
rewrite ^/news.html$ /news.html last;
}
rewrite ^/index.html$ /index.html last;
rewrite ^/(.*)/c_(.*)\.html$ /$1/index.php?yunurl=c_$2 last;
rewrite ^/company/(.*)\.html$ /company/index.php?yunurl=$1 last;
rewrite ^/ask/(.*)\.html$ /ask/index.php?yunurl=$1 last;
rewrite ^/friend/(.*)\.html$ /friend/index.php?yunurl=$1 last;
rewrite ^/once/(.*)\.html$ /once/index.php?yunurl=$1 last;
rewrite ^/tiny/(.*)\.html$ /tiny/index.php?yunurl=$1 last;
rewrite ^/map/(.*)\.html$ /map/index.php?yunurl=$1 last;
rewrite ^/evaluate/(.*)\.html$ /evaluate/index.php?yunurl=$1 last;
rewrite ^/resume/(.*)\.html$ /resume/index.php?yunurl=$1 last;
rewrite ^/lietou/(.*)\.html$ /lietou/index.php?yunurl=$1 last;
rewrite ^/train/(.*)\.html$ /train/index.php?yunurl=$1 last;
rewrite ^/wap/(.*)\.html$ /wap/index.php?yunurl=$1 last;
rewrite ^/zph/(.*)\.html$ /zph/index.php?yunurl=$1 last;
rewrite ^/m_(.*)\.html$ /index.php?yunurl=m_$1 last;
rewrite ^/c_(.*)\.html$ /index.php?yunurl=c_$1 last;
rewrite ^/job/(.*)\.html$ /job/index.php?c=comapply&id=$1 last;
rewrite ^/company/company-show-(.*)\.html$ /company/index.php?id=$1 last;
rewrite ^/company/(.*)/(.*)\.html$ /company/index.php?tp=$1&id=$2 last;
rewrite ^/company/(.*)\.html$ /company/index.php?id=$1 last;
rewrite ^/lietou/(.*)\.html$ /lietou/index.php?c=jobshow&id=$1 last;
rewrite ^/article/(.*)\.html$ /index.php?m=article&c=show&id=$1 last;



回复

使用道具 举报

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

本版积分规则

小黑屋|手机版|Archiver|东北网络社区 ( 辽ICP备14018532号-1 )  

GMT+8, 2024-3-29 10:22 , Processed in 0.128368 second(s), 16 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表