可以先单独为这个域名绑个web目录,里面建个index.php,代码是
- <?php
- header("Location:xxxxx?fid=2");
- ?>
方法2:rewrite来,nginx的规则。
- if ($http_host ~ "^www.phpwind.net$") {
- rewrite ^(.*) [url]http://www.phpwind.net/fid=2[/url] permanent;
- break;
- }
要是iis和apache的规则还要百度一下找找重新来写。
这样就跳过去了