When multiple domain names direct to the same domain name, it is similar to entering kaixin.com to automatically jump to renren. comOptions + FollowSymLinksRewriteEngineonRewriteCond $1! ^ (Index. php | images | style | js | system | Scripts | img | php | robots.txt) RewriteCond % {HTTP multiple domain names point to the same domain name
Enter kaixin.com to automatically jump to renren.com.
Options + FollowSymLinks
RewriteEngine on
RewriteCond $1! ^ (Index \. php | images | style | js | system | Scripts | img | php | robots \. txt)
RewriteCond % {HTTP_HOST} ^ example.com $ [NC]
RewriteRule ^ (. *) $ http://www.123.com/#1 [R = 301, L]
RewriteCond % {http_host} ^ example.net [NC]
RewriteRule ^ (. *) $ http://www.123.com/#1 [R = 301, L]
RewriteRule ^ (. *) $ index. php/$1 [L]
The above code will automatically jump to 123.comwhen example.com and example.net are entered. do you have any questions? The CI framework is used.
------ Solution --------------------
Come and answer, and I 'd like to know.
------ Solution --------------------
You just need to map the domain name provider to you.
Do not build a car behind closed doors!
------ Solution --------------------
I still cannot understand a lot of code.
Can this problem be solved?
------ Solution --------------------
301 jump.