Who will send a. htaccess domain name to the file for me? Why not? RewriteEngineOnRewriteCond % {HTTP_HOST} ^ www.xxx.com $ [OR] RewriteCond % {HTTP_HOST} ^ xxx.com $ & nbsp; RewriteRule ^? $ & Quot; www. example. co. who will send a. htaccess domain name to the file? Why not?
RewriteEngine On
RewriteCond % {HTTP_HOST} ^ www.xxx.com $ [OR] RewriteCond % {HTTP_HOST} ^ xxx.com $
RewriteRule ^ /? $ "Http \: \/www \. example \. com" [R = 301, L]
Who will send a. htaccess domain name to the file for me? Why not?
At the same time, five domain names are bound to one space: 1.www.example.com, 2.www.xxx.com, 3.xxx.com, 4.bbs.example.com, and 5.news.example.com;
Functions to be implemented:
When www.xxx.com and xxx.com are used for access, the system automatically redirects to www.example.com (the domain name in the address bar is displayed as www.example.com) and points to index. php on the spatial homepage.
When bbs.example.com is accessed, it directs to the subpage www.example.com/bbs. (the domain name in the address bar is displayed as bbs.example.com ).
When news.example.com is accessed, it directs to the subpage www.example.com/news. (the domain name in the address bar is displayed as news.example.com ).
------ Solution --------------------
Domain name jump has not been tried... Didn't you enable. htaccess directory identification?
This can be used for subpage jump
RewriteCond % {HTTP_HOST} ^ bbs.example.com $
RewriteCond % {REQUEST_URI }! ^/Bbs/
RewriteCond % {REQUEST_FILENAME }! -F
RewriteCond % {REQUEST_FILENAME }! -D
RewriteRule ^ (. *) $/bbs/$1
RewriteCond % {HTTP_HOST} ^ bbs.example.com $
RewriteRule ^ (/)? $ Bbs/index. php [L]
------ Solution --------------------
Domain name redirection? Is it a jump?