zhenglee
Member
hello, everyone.
I have a old forum script, I move it to xf 1.5.6
but now the old url can't redirect to new's.
my old url is http://bbs.example.com/forum.php?mod=viewthread&tid=409493&page=1&authorid=84701
and new url is http://bbs.example.com/threads/409493/
I write a nginx rewrite as blow, but it can't work. anyone can help me ?
thanks. @Jake Bunce
location ~* ^/forum.php?mod=viewthread&tid=[0-9]+\.+$ {
rewrite forum.php?mod=viewthread&tid=([0-9]+)&page=[0-9]+&authorid=[0-9]+$ /threads/$1/ permanent;
}
I have a old forum script, I move it to xf 1.5.6
but now the old url can't redirect to new's.
my old url is http://bbs.example.com/forum.php?mod=viewthread&tid=409493&page=1&authorid=84701
and new url is http://bbs.example.com/threads/409493/
I write a nginx rewrite as blow, but it can't work. anyone can help me ?
thanks. @Jake Bunce
location ~* ^/forum.php?mod=viewthread&tid=[0-9]+\.+$ {
rewrite forum.php?mod=viewthread&tid=([0-9]+)&page=[0-9]+&authorid=[0-9]+$ /threads/$1/ permanent;
}
Last edited: