东北网络社区
标题:
phpyun,宝塔面板,伪静态规则
[打印本页]
作者:
阿猪哥
时间:
2021-5-16 14:50
标题:
phpyun,宝塔面板,伪静态规则
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;
欢迎光临 东北网络社区 (http://bbs.azhuge.com/)
Powered by Discuz! X3.2