原创 nginx下discuz x3的僞靜態規則
server { listen 80; server_name koogay.com bbs.koogay.com; ... rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=to
原创 nginx域名301重定向
server{ ... if ($host != 'bbs.koogay.com' ) { rewrite ^/(.*)$ http://bbs.koogay.com/$1 permanent; }