minibb nginx rewrite

标签: 

正在查看 1 个帖子:1-1 (共 1 个帖子)
  • 作者
    帖子
  • #1147
    admin
    管理员
    Here are the rules for Nginx :
    #FORUM :
    rewrite ^/forum/([0-9A-Za-z-\+_]+)-([0-9]+)/([0-9]+)/$ /forum/index.php?action=vtopic&forum=$2&page=$3&mdrw=on;
    rewrite ^/forum/([0-9A-Za-z-\+_]+)-([0-9]+)/$ /forum/index.php?action=vtopic&forum=$2&page=1&mdrw=on;
    rewrite ^/forum/([0-9A-Za-z-\+_]+)-([0-9]+)/([0-9]+)$ /forum/index.php?action=vtopic&forum=$2&page=$3&mdrw=on;
    rewrite ^/forum/([0-9A-Za-z-\+_]+)-([0-9]+)$ /forum/index.php?action=vtopic&forum=$2&page=1&mdrw=on;
    rewrite ([0-9A-Za-z-\+._]+)-([0-9]+)/([0-9A-Za-z-\+._]+)-([0-9]
    +)/([0-9]+)/$ /forum/index.php?action=vthread&forum=$2&topic=$4&page=$5&mdrw=on;
    rewrite ([0-9A-Za-z-\+._]+)-([0-9]+)/([0-9A-Za-z-\+._]+)-([0-9]
    +)/$ /forum/index.php?action=vthread&forum=$2&topic=$4&page=1&mdrw=on;
    rewrite ([0-9A-Za-z-\+_]+)-([0-9]+)/([0-9A-Za-z-\+_]+)-([0-9]+)/([0-9]+)$ /forum/index.php?action=vthread&forum=$2&topic=$4&page=$5&mdrw=on;
    rewrite ([0-9A-Za-z-\+_]+)-([0-9]+)/([0-9A-Za-z-\+_]+)-([0-9]+)$ /forum/index.php?action=vthread&forum=$2&topic=$4&page=1&mdrw=on;
正在查看 1 个帖子:1-1 (共 1 个帖子)
  • 哎呀,回复话题必需登录。