16
Jan
Nginx rewrite rules for vBulletin + vbSEO
I searched on google and I think never heard about it.
I actually have implement nginx + vbseo on the forum that I maintained. You can see them here and here
How to create a nginx rewrite rule that is working for vBulletin and vbSEO plugins?
This’s the nginx configuration that’s working for vBulletin and vbSEO
location / {
rewrite ^/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;if ($request_filename ~ “\.php$” ) {
rewrite ^(.*)$ /vbseo.php last;
}if (!-e $request_filename) {
rewrite ^/(.*)$ /vbseo.php last;
}}
Any comments please welcome
Hi people…
Hello, this works great but seems to have a performance issue, if VBSEO is disabled pages load very fast. Also, going to “last post” link loads the first page first, then loads the page where the post is.