Nginx redirect from Drupal pages to XF threads?


Well-known member
Can any of you re-write wizards out there help me with something? I'm converting my board from Drupal+vB to just XF (with XenPorta as the "CMS"), but I need to properly forward my current news posts (Drupal) to the converted XF thread.

Our Drupal bridge to vB creates a thread every time a new article is posted in Drupal, so I am planning on manually copy/pasting those articles into the existing vB threads (into the OP). So basically I need help to do one the folowing:

Forward this link:

To either: <-- current vB format of threads associated with Drupal articles

or directly to <-- future XF format

Any ideas?

Jake Bunce

XenForo moderator
Staff member
Try this:

location /news/ {
	rewrite ^/news/this-is-my-article-title$ /threads/this-is-my-article-title.9999 permanent;
You would have to add another rewrite line for each article since there are no ids to work with.


Well-known member
Hmmm... I do have Drupal node IDs to work with. I just don't think they correspond to the thread IDs at all.