DBSEO rewrite rules for Lighttpd / nginx

Status
Not open for further replies.

Bossman

Customer
Hello,

We're looking to make the switch from vBSEO to DBSEO Pro, but we're interested to know if DBSEO also comes bundled with rewrite rules for Lighttpd or nginx, or do we have to manually adjust the .htaccess rules for our webserver.
 
DBSEO comes with an example set of nginx rules, but if you're currently using vBSEO you can simply delete the line(s) that reference vbseo_sitemap then run a search & replace for vbseo and replace it with dbseo :)
 
Well, for those who want to give Lighttpd a go as their webserver, they can try the following rewrite rules as a baseline:

If the vBulletin files are straight in the docroot

Code:
url.rewrite-once = (
"^(/(admincp/|modcp/|clientscript/|cpstyles/|images/|customprofilepics/|customavatars/|customavatars/thumbs/|api\.php|store_sitemap/).*)$" => "$1",
"^(/dbseo/resources/(css|images|scripts)/.*)$" => "$1",
"^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1",
"^/(.+)\?(.*)$" => "/dbseo.php?$2",
"^/(.+)$" => "/dbseo.php"
)
}

If vBulletin is installed in a sub-folder (e.g forum):

Code:
url.rewrite-once = (
"^(/forum/(admincp/|modcp/|clientscript/|cpstyles/|images/|customprofilepics/|customavatars/|customavatars/thumbs/|api\.php|dbseo_sitemap/).*)$" => "$1",
"^(/forum/dbseo/resources/(css|images|scripts)/.*)$" => "$1",
"^(/forum/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1",
"^/forum/(.+)\?(.*)$" => "/dbseo.php?$2",
"^/forum/(.+)$" => "/dbseo.php"
)
}
 
Last edited:
Remove these lines:
Code:
"^/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/dbseo_sitemap/dbseo_getsitemap.php?sitemap=$1",
Code:
"^/forum/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/dbseo_sitemap/dbseo_getsitemap.php?sitemap=$1",

DBSEO does not need any rewrite rules in order for the sitemaps to work as intended :)
 
Status
Not open for further replies.
Back
Top