$_server[' Http_host ' to get a level two domain name There's a strange problem.

Source: Internet
Author: User
Search engine Baidu

Use: $_server[' http_host '] to get the host address.
I have a website a:www.nowphp.com
There is a level two domain name: bbs.nowphp.com The post for the domain name is bbs.nowphp.com/1001.html
Here's the problem:
Baidu search engine is sometimes included in the www.nowphp.com/1001.html
My website distinguishes between Chinese and English.
Sometimes the host link address that sends the message is also replaced by www.nowphp.com/notify/101.html, which should have been bbs.nowphp.com/notify/101.html
I wonder if anyone can know why.


Reply to discussion (solution)

There are two kinds of domain name resolution, one is to point to a host IP, one is to forward
Sub-domains are the same

Most of your subdomains just forward instead of having a dedicated host

There are two kinds of domain name resolution, one is to point to a host IP, one is to forward
Sub-domains are the same

Most of your subdomains just forward instead of having a dedicated host
Thank you, listen to you say, seems to have some clues, can you tell me in detail

If you separate the system path of WWW and BBS and then parse it in Apache, you should not confuse the search engine

Or for the search engine crawler to do SEO filtering processing, this has not been studied

Thanks, upstairs.
Add the following questions:
I have a website a:http://www.nowphp.com
There is a level two domain name: http://bbs.nowphp.com The post for the domain name is http://bbs.nowphp.com/1001.html

  • 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.