Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] add path forum in the rewriterule nginx
#1
Not Solved
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)