We're running vBulletin 4 using nginx as our webserver. Getting this to work is pretty tough though, but here are the complete rewrite rules I'm using to make this site work.
I modified them from https://forum.vbulletin.com/forum/vb...-friendly-urls | Archived Version (in case VBulletin Deletes Thread)
The above guide was missing project, issue, and archive forum view specific entries.
If you guys notice any links that do NOT work, please let me know so that I can correct and update these nginx rewrite rules.
Code:
location /forums {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
# Forum
rewrite /widget/config/.* /forums/widget.php?r=config/$1&$query_string last;
rewrite /content/?(.*) /forums/content.php?page$1 last;
rewrite /showthread.php/.* /forums/showthread.php?$uri&$args last;
rewrite /threads/.* /forums/showthread.php?$uri&$args last;
rewrite /forumdisplay.php/.* /forums/forumdisplay.php?$uri&$args last;
rewrite /member.php/.* /forums/member.php?$uri&$args last;
rewrite /members/.* /forums/member.php?$uri&$args last;
rewrite /blogs/.* /forums/blog.php?$uri&$args last;
rewrite /entries/.* /forums/entry.php?$uri&$args last;
rewrite /list/.* /forums/list.php?$uri&args last;
rewrite /content.php/.* /forums/content.php?$uri&$args last;
rewrite /forums/archive/index.php/t-([0-9]+)\.html /forums/archive/index.php?t-$1.html last;
rewrite /forums/archive/index.php/f-([0-9]+)\.html /forums/archive/index.php?f-$1.html last;
rewrite /forums/project/([0-9]+).* /forums/project.php?projectid=$1 last;
rewrite /forums/issue/([0-9]+).* /forums/issue.php?issueid=$1 last;
rewrite /forums/issuelist/([0-9]+).* /forums/issuelist.php?projectid=$1 last;
rewrite /forums/.* /forums/forumdisplay.php?$uri&$args last;
rewrite /content/.* /content.php?$uri&$args last;
# MVC
rewrite ^/(?:(.*?)(?:/|$))(.*|$)$ /$1.php?r=$2 last;
}