.htaccess 301转向代码
前天因为CPANEL不能绑定二级域名到指定目录,就发信给Bluehost,没想到却得到了另一份东东。
Bluehost给我了一段很强的代码,哈哈!
RewriteEngine ON
RewriteCond %{HTTP_HOST} ^www.21andy.com$ [OR]
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ http://www.21andy.com/folder [R=301,L]
RewriteCond %{HTTP_HOST} ^www.21andy.com$ [OR]
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ http://www.21andy.com/folder [R=301,L]
Incoming search terms:
Tags: htaccess
我靠,太强了,真是无敌代码了!!!