开发者

vBulletin archive rewrite rules on Nginx

开发者 https://www.devze.com 2023-03-12 04:37 出处:网络
I got a problem for vBulletin开发者_StackOverflow archive running on Nginx 0.8.54. The Nginx gives me 404 error when I try visiting the following URLs

I got a problem for vBulletin开发者_StackOverflow archive running on Nginx 0.8.54. The Nginx gives me 404 error when I try visiting the following URLs

http://mydomain.com/forums/archive/index.php/t-19.html

http://mydomain.com/forums/archive/index.php/f-19.html

All other things of vBulletin works fine. Can anybody may share its rewrite rule to fix my problem ?

Thanks.


Try something like:

                        location /archive               {

                                                            rewrite ^/archive/index.php/t-([0-9]+)\.html /archive/index.php?t-$1.html last;
                                                            rewrite ^/archive/index.php/f-([0-9]+)\.html /archive/index.php?f-$1.html last;
                                                    }
0

精彩评论

暂无评论...
验证码 换一张
取 消