How to write a. htaccess domain name jump file? Php space, supports pseudo-static hop transfer. for example, a php space can be bound with three domain names www.aaa.comwww.xxx.combbs.aaa.com at the same time. when www.xxx.com is used for access, it automatically jumps to www.aaa.com) point to index on the spatial homepage. php. When bbs.aaa.com comes to the. htaccess domain name, how can I write a jump file?
Php space, supports pseudo-static skip
For example, a space supporting php is bound with three domain names at the same time.
Www.aaa.com
Http://www.xxx.com
Bbs.aaa.com;
When www.xxx.com is used for access, the system automatically jumps to www.aaa.com (the domain name in the address bar is displayed as www.aaa.com) and points to index. php on the spatial homepage.
When bbs.aaa.com is used for access, it points to the subpage of www.aaa.com/bbs.php (the domain name in the address bar is displayed as bbs.aaa.com ).
------ Solution --------------------
Just add a rewrite, and then rewrite bbs.aaa.com to www.aaa.com/bbs.php.
------ Solution --------------------
You may understand the statements in htaccess and find a solution.
RewriteEngine on
RewriteCond $1! ^ (Index \. php | images | robots \. txt | user_guide /)
RewriteRule ^ (. *) $/index. php/$1 [L]
------ Solution --------------------
# Use PHP5 Single php. ini as default
AddHandler application/x-httpd-php5s. php
RewriteEngine On
RewriteCond % {HTTP_HOST} ^ ganfulejiaonang \. xyz315 \. com $ [OR]
RewriteCond % {HTTP_HOST} ^ www \. ganfulejiaonang \. xyz315 \. com $
RewriteRule ^ /? $ "Http \: \/ganfulejiaonang \. xyz120 \. net \/" [R = 301, L]