tvnewstalk
Member
Hello all...
I've seem to run into a small problem while converting our site to XenForo. I cannot for the life of me get NGINX to pass old URL's to the ips2xf.php script.
I've tried to use the examples posted here, but have had no luck. Since we host our forums in the root directory, I modified those examples as follows:
No luck. If I manually force an old URL through the ips2xf script, it works just fine.
Any ideas??? For some reason, I can't quite wrap my head around this one, even though I'm generally pretty good at figuring out how NGINX works.
I've seem to run into a small problem while converting our site to XenForo. I cannot for the life of me get NGINX to pass old URL's to the ips2xf.php script.
I've tried to use the examples posted here, but have had no luck. Since we host our forums in the root directory, I modified those examples as follows:
Code:
location = / {
if ($uri ~* /(topic|forum|user)/) {
rewrite ^ /ips2xf.php? last;
}
if ($args ~* (^|&)show(topic|forum|user)=) {
rewrite ^ /ips2xf.php? last;
}
if ($args ~* ^/(topic|forum|user)/) {
rewrite ^ /ips2xf.php? last;
}
}
No luck. If I manually force an old URL through the ips2xf script, it works just fine.
Any ideas??? For some reason, I can't quite wrap my head around this one, even though I'm generally pretty good at figuring out how NGINX works.