首页 >运维 >Nginx >Nginx环境WeCenter伪静态怎么设置

Nginx环境WeCenter伪静态怎么设置

WBOY
WBOY转载
2023-05-15 21:52:04751浏览

将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放在网站根目次下伪消息代码:

rewrite ^([^\.]*)/static/(.*)$ $1/static/$2 last;
rewrite ^([^\.]*)/uploads/(.*)$ $1/uploads/$2 last;
rewrite ^([^\.]*)/(.*)$ $1/index.php?/$2 last;
rewrite ^([^\.]*)/topic/(.*)$ $1/cnurl.php last;

以上是Nginx环境WeCenter伪静态怎么设置的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文转载于:yisu.com。如有侵权,请联系admin@php.cn删除