• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

vBulletin 3.8 Zoints SEO Rewrite Rules Nginx

Ptr

New member
#1
I couldn't locate any example of how to redirect friendly URLs managed by the Zoints SEO plugin for vBulletin so came up with my own configuration. I use Nginx so my location block looks like this:

Code:
    #rewrite thread requests
    rewrite t([0-9]+)\.html.* /threads/$1 permanent;
    #rewrite forum requests
    rewrite f([0-9]+)\.html.* /forums/$1 permanent;
    # First attempt to serve request as file, then
    # as directory, then pass to index.php
    try_files $uri $uri/ /index.php?$uri&$args;
E.g.:
Caveats are:
  • You might have had Zoints configured differently so my pattern may not work
  • Assumes a basic site set-up where forum is in root directory, no false positives, friendly URLs enabled etc.
  • 2 redirects are being issued so there is a HTTP overhead for user and your server (unavoidable).
  • 2 Regex rules are been run for every request to the server, something to be conscious of