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?