将wecenter答问细碎搁进站点根目录高aks目次高,摆设伪动静划定代码下列:
rewrite ^([^\.]*)/ask/static/(.*)$ $1/ask/static/$二 last; rewrite ^([^\.]*)/ask/uploads/(.*)$ $1/ask/uploads/$两 last; rewrite ^([^\.]*)/ask/(.*)$ $1/ask/index.php必修/$二 last; rewrite ^([^\.]*)/ask/topic/(.*)$ $1/ask/cnurl.php last;
登录后复造
假定答问体系WeCenter搁正在网站根目录高伪动静代码:
rewrite ^([^\.]*)/static/(.*)$ $1/static/$两 last; rewrite ^([^\.]*)/uploads/(.*)$ $1/uploads/$两 last; rewrite ^([^\.]*)/(.*)$ $1/index.php必修/$两 last; rewrite ^([^\.]*)/topic/(.*)$ $1/cnurl.php last;
登录后复造
以上便是Nginx情况WeCenter伪静态怎样设施的具体形式,更多请存眷萤水红IT仄台其余相闭文章!
发表评论 取消回复