PHP adds wildcard domain names to implement blog second-level domain names

Source: Internet
Author: User

Copyright statement: original works can be reproduced. During reprinting, be sure to mark them as hyperlinks.ArticleOriginal publication, author information, and this statement. Otherwise, legal liability will be held. Http://blog.csdn.net/mayongzhan-ma yongzhan, myz, mayongzhan

The writing is a little simple. 1. First Set * .csdn.net to point to your server IP address at the service provider. If not, buy your own CN. 1 RMB. 2. For details about how to set up a VM in Apache, refer to my digest ------ Apache standalone test Vm 3. Set $ _ server ['HTTP _ host'] in PHP to use different trees. CubeMethod. OK 4 Note: To set cookies to .csdn.net, you need to set some domain names to be retained. for example, WWW blog tag is very simple. however, the development of csdn cannot be fixed. it should not be a long time.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.