I have these htaccess rules for redirecting phpbb urls to xenforos= friendly urls
What would its equivalent be in nginx? I tried online converters and even Plesk htaccess to nginx rules, no luck.
Apache config:
RewriteCond %{QUERY_STRING} (^|&)t=([0-9]+)(&|$) [NC]
RewriteRule ^viewtopic\.php$ /threads/%2/? [L,R=301,NC]
RewriteCond %{QUERY_STRING} f=(\d+)$ [NC]
RewriteRule ^(viewforum\.php|viewtopic\.php)$ /forums/%1/? [L,R=301,NC]
RewriteCond %{QUERY_STRING} (^|&)p=([0-9]+)(&|$) [NC]
RewriteRule ^viewtopic\.php$ /posts/%2/? [L,R=301,NC]
What would its equivalent be in nginx? I tried online converters and even Plesk htaccess to nginx rules, no luck.