黑基网 首页 学院 电脑技术 查看内容

PHP Redirection script

2009-7-22 10:21| 投稿: computer

摘要:   Hi all. I'd like to share this simple php script of mine. This can save you a lot of money if you ...
  Hi all. I'd like to share this simple php script of mine. This can save you a lot of money if you are renting web spaces and you wanted to use multiple domains. I hope this helps.    $url1 = $line_list[0];  $url2 = $line_list[1];  $redirect = $line_list[2];    if ($url1 == $remote or $url2 == $remote):  Header ("Location:$redirect");  $closefp = fclose($fp);  endif;  endwhile;  $closefp = fclose($fp);  ?>  /*文件名 - redirect.txt (here is where you will put your domain names and directory)    domain1.com|www.domain1.com|subdirectory/index.php  domain2.com|www.domain2.com|subdirectory/index.php  */  //at the very top of your main accounts index file, put:
小编推荐:欲学习电脑技术、系统维护、网络管理、编程开发和安全攻防等高端IT技术,请 点击这里 注册黑基账号,公开课频道价值万元IT培训教程免费学,让您少走弯路、事半功倍,好工作升职加薪!



免责声明:本文由投稿者转载自互联网,版权归原作者所有,文中所述不代表本站观点,若有侵权或转载等不当之处请联系我们处理,让我们一起为维护良好的互联网秩序而努力!联系方式见网站首页右下角。


鲜花

握手

雷人

路过

鸡蛋

相关阅读

最新评论


新出炉

返回顶部