#此文件绝对不能用记事本编辑否则Nginx会无法启动，直到拿原始文件覆盖才能启动，建议到官网下载notepad++软件编辑。
#UPUPW Nginx版伪静态规则文件,此处只能添加伪静态不能添加其它配置参数,中文说明前边的#号不能去掉否则会出错。

#301重定向域名跳转示例 域名先绑定到主机然后修改对应域名去掉以下代码前边的#号即可生效
# if ($Host = 'xxx.com'){
#                 rewrite ^/(.*)$ http://www.xxx.com/$1 permanent;
#                 }

#discuz3.2伪静态规则示例 请去掉以下代码前边的#号即可生效
# 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 ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;
# rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last;
# rewrite ^([^\.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3 last;
# if (!-e $request_filename) {
# 	return 404;
# }

#phpwind9.0伪静态规则示例 请去掉以下代码前边的#号即可生效
# if (-f $request_filename) {
#           break;
#   }
#    if ($request_filename ~* "\.(js|ico|gif|jpe?g|bmp|png|css)$") {
#       break;
#   }
#   if (!-e $request_filename) {
#       rewrite . /index.php last;
#   }

#WordPress或ThinkPHP伪静态规则示例 请去掉以下代码前边的#号即可生效
#   if (!-e $request_filename) {
#   	rewrite ^/(.*)$ /index.php$1 last;
#       break;
#   }
	