MyBB Community Forums

Full Version: add path forum in the rewriterule nginx
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys, sorry but the documentation about the rewriterule in nginx is very deficient and all use different methods. I have the forum inside a folder named "forum". If I want to edit the rewriterule of the htaccess-nginx.txt to accept the forum folder how can I do it?

I have this rewrite for example:

rewrite ^/forum-([0-9]+).html$ /forumdisplay.php?fid=$1 last;

how I have to edit it?

this?
rewrite ^/forum/forum-([0-9]+).html$ /forum/forumdisplay.php?fid=$1 last;

or this?
rewrite ^/forum-([0-9]+).html$ /forum/forumdisplay.php?fid=$1 last;

or anything else?

Thanks.