We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
通过userAgent判断具体是哪个系统,是否在微信内打开,然后通过调整respones解决;
以上两种方式都可以解决这个问题,基于一些环境原因,选择用Nginx的方式去解决
server { listen 80; server_name www.a.com a.com; charset utf-8; location /applink { #微信浏览器 if ($http_user_agent ~* "micromessenger" ){ rewrite ^/.* https://a.com/ulink/action/ redirect; } if ($http_user_agent ~* "android"){ rewrite ^/.* https://a.com/apk/appname.apk redirect; } if ($http_user_agent ~* "iphone"){ rewrite ^/.* https://apps.apple.com/cn/app/ redirect; } rewrite ^/.* http://lizhifm.cn/d redirect; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
app下载链接适配
背景
方案
通过userAgent判断具体是哪个系统,是否在微信内打开,然后通过调整respones解决;
以上两种方式都可以解决这个问题,基于一些环境原因,选择用Nginx的方式去解决
Nginx
The text was updated successfully, but these errors were encountered: