I'm running the full VB4 suite, with my CMS in the root folder (using the CMS stub folder - www.example.com) and my forums at /forums (www.example.com/forums)
location / { #for vbulletin 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/.* /forums/forumdisplay.php?$uri&$args last; rewrite /content/.* /content.php?$uri&$args last; # MVC rewrite ^/(?:(.*?)(?:/|$))(.*|$)$ /$1.php?r=$2 last; }
If you have any suggestions to make it cleaner, let me know and I'll edit them in.
Comment