Help change domain name 301 Jump question
Suppose old domain name: a.com, new domain name: B.Com
Ask how to configure the. htaccess, the original domain name all URL 301 to the new domain name, including the level two domain name such as: www.a.com-www.b.com A.com-www.b.com Shop.a.com-shop.b.com Photo.a.com-photo.b.com ...................... Wait a minute
I've added the following rules to the. htaccess, which will turn all URLs to www.b.com and not meet the requirements
Rewriteengine on
Rewritebase/
Rewritecond%{request_filename}!-f
Rewritecond%{request_filename}!-d
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.