电话
13363039260
宝塔后援对WeCenter伪静态设置划定规矩代码,Nginx环境的WeCenter问答细碎伪动静代码。
以上咱们将WeCenter问答细碎放入站点根目次下aks目次下,设置装备摆设伪动态规则代码以下:
rewrite ^([^\.]*)/ask/static/(.*)$ $1/ask/static/$2 last; rewrite ^([^\.]*)/ask/uploads/(.*)$ $1/ask/uploads/$2 last; rewrite ^([^\.]*)/ask/(.*)$ $1/ask/index.php?/$2 last; rewrite ^([^\.]*)/ask/topic/(.*)$ $1/ask/cnurl.php last;
假定问答系统WeCenter放在web根目录下伪静态代码:
rewrite ^([^\.]*)/static/(.*)$ $1/static/$2 last; rewrite ^([^\.]*)/uploads/(.*)$ $1/uploads/$2 last; rewrite ^([^\.]*)/(.*)$ $1/index.php?/$2 last; rewrite ^([^\.]*)/topic/(.*)$ $1/cnurl.php last;