共计 266 个字符,预计需要花费 1 分钟才能阅读完成。
xxx.com/mjj.html 跳 jjj.com/mjj.html 全部链接都要这样。怎么能实现呀。请教大神 |
网友回复:
注册 : nginx return 301 https://jjj.com$request_uri; # 或 location / {rewrite ^(.*)$ https://jjj.com$1 permanent; } 复制代码
toot: RewriteEngine on RewriteRule ^(.*)$ http://jjj.com/$1 [R=301,L] htaccess 用这个。
全军冲鸡: 感谢。丢伪静态里吗
hjz: 在 nginx 站点配置文件里
正文完