Regex to remove special characters from redirected URLs?

sub_ubi

Well-known member
The beta version of XF Redirects for vBulletin is a little buggy, and breaks with ! * _ and other characters.

I'm thinking this issue can be solved with an nginx redirect, and a little regex.

Anyone skilled with regex up for helping? Here's what I have so far,
rewrite ^/forums(.*)[\!](.*)$ new.com/community$1$2 permanent;
but it doesn't work correctly.

Thanks for any help!
 
Back
Top Bottom