Apache. the 301 redirection in htaccess enables the website to be collected from a domain name without a www domain name: create a file redirect in the root directory. htaccess with Options + FollowSymlinksRewriteEngineonRewriteCond % {HTTP_HOST} ^ bysui.com [NC] RewriteRule ^ (. *) $ htt apache. 301 redirection in htaccess enables jump without a www domain name to a domain name with www
Methods collected online:
Create the file redirect. htaccess in the root directory. the content is
Options + FollowSymlinks
RewriteEngine on
RewriteCond % {HTTP_HOST} ^ bysui.com [NC]
RewriteRule ^ (. *) $ http://www.bysui.com/#1 [L, R = 301]
Why didn't I implement redirection?
Thank you.
------ Solution --------------------
Local or server
Restart the server if it cannot be changed.
Http://topic.csdn.net/u/20120831/11/0e57d7df-8d90-4f23-92a9-61fd1d2b2546.html
------ Solution --------------------
Apache supports redirection.
------ Solution --------------------
Note that if you use NC, you will transfer bysui.com to RewriteRule.