I'd like to apologize up front if this isn't clear. I'm running on way too little sleep and things are getting muddy. I just migrated vBulletin 3.8 --> Xenforo, and I'm getting less hate from the users than I expected, so that's good. Old links weren't working, so I installed the import redirection tool and most links are fine now. But Google linked to our archive, and those are 404-ing. Apparently if I was running Apache this would work: Code: RewriteRule ^archive/index\.php/t-([0-9]+)\.html$ http://yoursite.com/index.php?threads/$1/ [R=301,L] or RewriteRule ^archive/index\.php/t-([0-9]+)\.html$ /index.php?threads/$1/ [R=301,L] But I'm not, and I'm just not capable of learning this right now. Can anyone tell me how to convert this into something nginx could perform? Thanks.
A nap can help so much! I found this site that fixed it for me: Rule convertor, convert apache htaccess rewrite rules to nginx rewrite rules automatically Thanks! (For future searchers, the output was this: rewrite ^/archive/index.php/t-([0-9]+).html$ /index.php?threads/$1/ permanent; The forum still runs, and the archive links that were giving me fits now bring up the correct thread.)
ah surprised that rule convertor gave a correct conversion, usually it doesn't for some heh you don't need one for forums just threads ? Code (Text): location ~ /archive { rewrite ^/archive/index.php/t-([0-9]+)\.html /threads/$1/ last; rewrite ^/archive/index.php/f-([0-9]+)\.html /forums/$1/ last; }