Simple redirect in nginx or xenforo?

ekool

Active member
I had VB setup with CMPS and the old URL was as such

site/index.php?pageid=rules

I can do basic nginx redirects but I can't match on values after the ? (post value).

I'm wondering what the best way is to redirect that URL to the sites normal terms URL:

site/help/terms/

Anybody know the best way to do this?
 
If you only have to deal with a few links, I would recommend using this addon:


This would also show you 404 hits to your site and allow you to create redirects from XenForo backend. It's pretty nice than dealing with nginx conf files to create manual redirections.
 
If you only have to deal with a few links, I would recommend using this addon:


This would also show you 404 hits to your site and allow you to create redirects from XenForo backend. It's pretty nice than dealing with nginx conf files to create manual redirections.

I've got that installed but it doesn't show up as a 404. It redirects from index.php?pageid=rules and shorts to just site.com/?pageid=rules

It doesn't think it's a 404 for some reason.
 
ah right... makes sense. hopefully someone else here is able to provide nginx redirect code you would need to add to your configuration file.

if you are worried about existing links in posts, it might be better to do a database find and replace to change those links so that redirections are not required.
 
Top Bottom