主题: punbb nginx rewrite Help

If your forum URL looks like www.example.com/forum/, for Folder Based or Folder Based (fancy) URL schemes you can use this rewrite rule:

rewrite /forum/.*[^(.php|.css|.png|.jpg|.gif)]$ /forum/rewrite.php last;

If you use File Based or File Based (fancy) URL schemes, you can use this rewrite rule:

rewrite /forum/.+\.html$ /forum/rewrite.php last;

hyqinglan.net