共计 406 个字符,预计需要花费 2 分钟才能阅读完成。
以下是 Apache 的写法:
<IfModule mod_rewrite.c> 如果换成 Nginx 的写法是怎么写? |
网友回复:
注册 : 不知道对不对
xz72670: 不对,不过谢谢你
yxmss: # domain.com server {server_name domain.com; location / {} } # test.domain.com server {server_name test.domain.com; rewrite ^ $scheme://domain.com/test$uri permanent;} 复制代码
正文完