双域名匹配不同网页代码

2020年03月17日

原创内容,转载请注明出处:https://www.myzhenai.com.cn/post/3176.html

关键词:公安网备代码 双域名 备案代码 多个域名同目录如何配置备案号

我有两个域名 指向的都是同一个根目录,但是这两个域名都已经备案通过并通过琼公安备案,但是同一个网站如何显示两个备案号呢?

实现的方法很简单,在加载页面的时候通过判断当前域名来进行自动匹配,看看我的代码就可以了。

演示地址:https://www.myzhenai.com https://www.myzhenai.com.cn

            
琼公安网备";
                $gbeian = " 琼ICP备19004099号-3 ";

            } else {

                $beian = "
琼公安网备";
                $gbeian = " 琼ICP备19004099号-2 ";

 


sicnature ---------------------------------------------------------------------
Your current IP address is: 3.89.116.152
Your IP address location: 美国弗吉尼亚阿什本
Your IP address country and region: 美国 美国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source https://www.myzhenai.com/post/3176.html

没有评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注