![]() |
NGINX Rewrite rules for SEO Friendly URLs?
Hi All -
Does anyone have a set of NGINX rewrite rules for the "advanced" SEO URLs in VB4? I see the mod_rewrite rules are built right in to VB, but I've never had much luck translating them to NGINX. Thanks! |
Hmm - I'm surprised no one else here uses NGINX! I've found its much faster / more efficient than Apache...
|
I found these NGINX rules elsewhere on the forum; I don't know if they are 100% correct, but they should at least help anyone who find this thread in their journey :)
rewrite entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&$query_string; rewrite threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&$query_string; rewrite members/([0-9]+) member.php?u=$1&$query_string; rewrite forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&$query_string; rewrite blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&$query_string; rewrite list/([^/]*/)([0-9]+) list.php?r=$1$2&$query_string; rewrite content/(.*) content.php?r=$1&$query_string; rewrite widget/config/([0-9]+) widget.php?r=config/$1&$query_string; rewrite clientscript/(.*) /clientscript/$1; # fixed some beta 4 issues |
All times are GMT. The time now is 11:21 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|