目前全伪静态,想实现如下:
解析2个域名 www.sf.com 、 m.sf.com 到 同一目录;
访问时:
www.sf.com 访问静态页面:www.sf.com/abc.html
m.sf.com 伪静态 => m.sf.com/index.php?name=abc 伪静态 成 m.sf.com/abc.html
能否实现?
15 回答8.2k 阅读
1 回答4.1k 阅读✓ 已解决
3 回答1.9k 阅读✓ 已解决
2 回答2.3k 阅读✓ 已解决
2 回答2.4k 阅读✓ 已解决
1 回答1.8k 阅读✓ 已解决
1 回答1.4k 阅读✓ 已解决
可以,
www
是静态页面不用特别设定, 只在.html存在即可.m
子站可以设置如下文档参考
https://nginx.org/en/docs/http/ngx_http_rewrite_module.html#r...