Htaccess Control 301 Directional
# Long domain-oriented short domain name, weighted to a rewriteengine onrewritebase/rewritecond%{http_host} ^www.mr8c.com [Nc]rewriterule ^ (. *) $/HTTP mr8c.com/$1 [l,r=301]
This code controls the www.mr8c.com domain name access requests Redirect to the Mr8c.com, realizes the long domain name to direct the short domain name, the weight unifies to the short domain name.
2. Controlling static file Outbound access
Rewriteengine Onrewritebase/rewritecond%{http_referer}!^ $RewriteCond%{http_referer}!^http://(www\.)? mr8c.com/.*$ [Nc]rewriterule \. (GIF|JPG|PNG|JS|CSS) $-[F]
This code controls the termination of requests for access to refer sources for non-mr8c.com and non-www.mr8c.com domain names.
This article is from the "Junk King" blog, please be sure to keep this source http://paulwl.blog.51cto.com/12789708/1914807
Build Station SEO htaccess file control (301 and static file permissions)