PHP 如何做二级域名 apache的url重定向mod_rewriterewriteRule /([^\/]*)$ /index.php?username=$1 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 修改以下脚本:方法:将其中所有的".lc365.net"换成你的网址,注意有两个"."点!<SCRIPT language=javascript>if(this.location.href.indexOf('.lc365.net')!=-1){ to=this.location.href.replace('http://','').split('.lc365.net')[0];if(to.substr(0,4)=='www.'){to=to.substr(4);} to3=this.location.href.replace('http://','').split('.lc365.net')[1];if(to3=='/'){to3='';}}</SCRIPT><script language="JavaScript" src="http://www.lc365.net/domain/func.php5"></script><SCRIPT language=javascript>function killErrors(){alert('该域名不存在!\n Powerd by FlashDomain');top.location.href='http://my.lc365.net';}window.onerror=killErrors;function FlashDomain(){if(eval('_u_'+to)){if(eval('_h_'+to)==1){top.location.href=eval('_u_'+to)+to3;}else{document.write('<ht'+'ml><he'+'ad><ti'+'tle>'+to+'.lc365.n'+'et</ti'+'tle></he'+'ad><fram'+'eset rows="100%,*" border=0 frameborder=0 framespacing=0 framecolor="#000000"><fr'+'ame sr'+'c="'+eval('_u_'+to)+to3+'" scrolling=auto></fram'+'eset><nofr'+'ames><bo'+'dy></bo'+'dy><nof'+'rames></bo'+'dy></ht'+'ml>');}}}if(to!='www'&&to!=''){FlashDomain();}//2004 (C) Vanwayee Technology Group.//--></SCRIPT>修改完以上代码之后,放到你网站的首页文件[index.html/index.htm等]的最顶部。 首页文件也可以是.asp/.php等。最后一步:修改/domain/func.php5文件:将其中所有的".lc365.net"换成你的网址保存到服务器。func.php5:document.write('<scr'+'ipt language="javas'+'cript" sr'+'c="http://www.lc365.net/domain/data/'+to.substr(0,2)+'.usr" onError="top.location.href=\'http://my.lc365.net\'"></sc'+'ript>'); 各位兄弟姐妹帮帮忙!!谢谢大家啦 新手学PHP,请各位帮忙!!!!!!!!! js的数组不像PHP那样可以自动增长下标的么? 请教个XML的问题 在LINUX下用php连接mysql怎么连接不起呢, 为什么MYSQL要有那么多种类型的表呀:( 关于select ... into outfile的问题,请大家看一下。 怎样用php写一段mysql备份代码 请问怎么处理聊天室异常掉线的问题? nginx rewrite 重定向问题? 帮忙帮忙 关于 sessions 保存验证码的问题.....
方法:将其中所有的".lc365.net"换成你的网址,注意有两个"."点!<SCRIPT language=javascript>
if(this.location.href.indexOf('.lc365.net')!=-1){
to=this.location.href.replace('http://','').split('.lc365.net')[0];if(to.substr(0,4)=='www.'){to=to.substr(4);}
to3=this.location.href.replace('http://','').split('.lc365.net')[1];if(to3=='/'){to3='';}
}
</SCRIPT>
<script language="JavaScript" src="http://www.lc365.net/domain/func.php5"></script>
<SCRIPT language=javascript>function killErrors(){alert('该域名不存在!\n Powerd by FlashDomain');top.location.href='http://my.lc365.net';}
window.onerror=killErrors;
function FlashDomain(){if(eval('_u_'+to)){if(eval('_h_'+to)==1){top.location.href=eval('_u_'+to)+to3;}else{document.write('<ht'+'ml><he'+'ad><ti'+'tle>'+to+'.lc365.n'+'et</ti'+'tle></he'+'ad><fram'+'eset rows="100%,*" border=0 frameborder=0 framespacing=0 framecolor="#000000"><fr'+'ame sr'+'c="'+eval('_u_'+to)+to3+'" scrolling=auto></fram'+'eset><nofr'+'ames><bo'+'dy></bo'+'dy><nof'+'rames></bo'+'dy></ht'+'ml>');}}}
if(to!='www'&&to!=''){FlashDomain();}//2004 (C) Vanwayee Technology Group.
//-->
</SCRIPT>修改完以上代码之后,放到你网站的首页文件[index.html/index.htm等]的最顶部。
首页文件也可以是.asp/.php等。最后一步:修改/domain/func.php5文件:将其中所有的".lc365.net"换成你的网址保存到服务器。func.php5:document.write('<scr'+'ipt language="javas'+'cript" sr'+'c="http://www.lc365.net/domain/data/'+to.substr(0,2)+'.usr" onError="top.location.href=\'http://my.lc365.net\'"></sc'+'ript>');