闲话不说,直入主题:
1.Nginx层做转发
location /android/download {
rewrite ^ http://www.XXXX.com/YYYY.apk redirect;
}
2.通过静态HTML页做转发
1)JS方式
<html>
<head>
<meta http-equiv="cache-control" content="no-cache" />
<script language="javascript">
window.location.href="http://www.XXXX.com/YYYY.apk";
</script>
</head>
</html>
2)META方式
<html>
<head>
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="refresh" content="1,http://www.XXXX.com/YYYY.apk" />
</head>
</html>