How to set up pseudo-static WeCenter in Nginx environment

WBOY
Release: 2023-05-15 21:52:04
forward
731 people have browsed it

将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;
Copy after login

假设问答系统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;
Copy after login

The above is the detailed content of How to set up pseudo-static WeCenter in Nginx environment. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template