How to access the two-level directory without displaying a level two directory path for a sample domain

Source: Internet
Author: User
How does a domain name access level two directory but does not display a level two directory path?
How does a domain name access level two directory but does not display a level two directory path?
For example, my site www.abc.com has specified the root directory of index.php
Then my bbs.abc.com to access the level two directory (BBS) of the forum.php
I use
$the _host = $_server[' http_host '); Get the current access domain name
if ($the _host = = "Bbs.abc.com") {
Header ("Location:./bbs/forum.php");
Ensure that subsequent code is not executed after redirection
Exit
}
This is able to jump, but the URL will show bbs.abc.com/bbs/forum.php
I want to make him appear bbs.abc.com/forum.php.
How is this supposed to be done?
------to solve the idea----------------------
This effect is not better?
$the _host = $_server[' http_host ');   Get the current access domain name
if ($the _host = = "Bbs.abc.com") {


Exit
}

------to solve the idea----------------------
Don't have permission to modify the configuration of the Web server? Can only be implemented in PHP?
  • 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.