Home > Backend Development > PHP Tutorial > PHP生成海量 二级域名有关问题

PHP生成海量 二级域名有关问题

WBOY
Release: 2016-06-13 10:42:55
Original
924 people have browsed it

PHP生成海量 二级域名问题
如提 我想 www.abc.com/aa.php?id=aa 改成 aa.abc.com 这样的如何实现各位大师请教下

------解决方案--------------------

PHP code
$str = 'www.abc.com/aa.php?id=aa';preg_match('#id=([^&]+)#is', $str, $m);echo "{$m[1]}.abc.com";<br><font color="#e78608">------解决方案--------------------</font><br>域名做泛解析,*.abc.com<br><br>url做重写.<br><font color="#e78608">------解决方案--------------------</font><br>汗, 有功夫在这问你百度个APACHE重写的例子早自己做了, 有难度吗。<div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template