子目录设置二级域名js跳转

时间:2021-01-08 12:07:48
<script type="text/javascript">
  var host = window.location.host;
  if (host == "cbs.fbzl.org") location = 'http://fbzl.org/cbs/';
  if (host == "love.fbzl.org") location = 'http://fbzl.org/wish/';
  if (host == "wish.fbzl.org") location = 'http://fbzl.org/wish/';
  </script>