上面的方法跟这个



RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://chinahtml.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://chinahtml.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.chinahtml.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.chinahtml.com$ [NC]
RewriteRule .*\.(gif|jpb|png|css|js|swf])$ http://www.chinahtml.com/error.gif [R,NC]



有什么区别?用RewriteEngine on的方法,可以设置所有域名嘛?