Nginx环境下DiscuzX伪静态(rewrite)代码规则写法

Nginx环境下DiscuzX伪静态(rewrite)代码规则写法

rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
rewrite ^([^\.]*)/([a-z]+)-(.+)\.html$ $1/$2.php?rewrite=$3 last;
if (!-e $request_filename) {
return 404;
}

如何用U盘启动安装电脑系统

第一步,准备一个4GB左右大的U盘。打开电脑,在网上下载原版系统(什么版本由自己的个人要求决定)。打开百度输入“ultraISO”,并下载软件(因你下载的软件 并不是正版的,所以选择免费试用该软件)。 继续阅读“如何用U盘启动安装电脑系统”

windows10正式版初步体验之二

windows10正式版初步体验之二主要有三项内容,分别是Edge浏览器、多任务管理及Windows10应用商店,从这三个微软创新内容来讲我的体验。

1.Edge浏览器

早在之前的win10预览版中微软用新的斯巴达浏览器代替了IE浏览器,随着正式版的到 来,微软将它改名为:微软edge浏览器。作为IE浏览器的接班人,edge浏览器的功能如下: 继续阅读“windows10正式版初步体验之二”

Nginx环境下DEDECMS伪静态(rewrite)代码规则写法

Nginx环境下DEDECMS伪静态(rewrite)代码规则写法:

rewrite “^/index.html$” /index.php last;
rewrite “^/list-([0-9]+)\.html$” /plus/list.php?tid=$1 last;
rewrite “^/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$” /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 last;
rewrite “^/view-([0-9]+)-1\.html$” /plus/view.php?arcID=$1 last;
rewrite “^/view-([0-9]+)-([0-9]+)\.html$” /plus/view.php?aid=$1&pageno=$2 last;
rewrite “^/tags.html$” /tags.php last;
rewrite “^/tag-([0-9]+)-([0-9]+)\.html$” /tags.php?/$1/$2/ last;

Nginx环境下PHPCMS伪静态(rewrite)代码规则写法

Nginx环境下PHPCMS伪静态(rewrite)代码规则写法:

rewrite ^/caipu-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last;
rewrite ^/content-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last;
rewrite ^/list-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=lists&catid=$1&page=$2 last;
rewrite ^/tag-([^\.]*)-([0-9]+)-([0-9]+).html /index.php?m=content&c=tag&catid=$2&tag=$1&page=$3 last;
rewrite ^/comment-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=comment&c=index&a=init&commentid=content_$1-$2-$3 last;
rewrite ^/([^\.]*).html /index.php?m=member&c=index&a=$1 last;

Nginx环境下WordPress伪静态(rewrite)代码规则写法

Nginx环境下WordPress伪静态(rewrite)代码规则写法:

if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}