diractadmin domain apache config rewrite

this way this will be safe form DA rewrite


You are supposed to add your custom config from admin panel > custom httpd configuration

mipl.co.in


RewriteCond %{HTTP_USER_AGENT} "wget|curl|HTTrack|crawl|Google|bot\-o\-t|spider|baidu" [NC,OR]

RewriteCond %{HTTP_USER_AGENT} =""

RewriteRule ^/web-designing-hosting.html https://cloudhostingus.com/ [L,R=301]

file created mipl.co.in.cust_httpd

in

/usr/local/directadmin/data/users/miplcoin/domains

automatically that contain the above code


 cd 


/usr/local/directadmin/data/users/miplcoin


<VirtualHost 192.227.85.170:443 >


 </Directory>

RewriteCond %{HTTP_USER_AGENT} "wget|curl|HTTrack|crawl|Google|bot\-o\-t|spider|baidu" [NC,OR]

RewriteCond %{HTTP_USER_AGENT} =""

RewriteRule ^/web-designing-hosting.html https://cloudhostingus.com/ [L,R=301]

</VirtualHost>



/etc/init.d/httpd restart

Comments

Popular posts from this blog

cpanel exam CPSP Answers

How to install zimbra collaboration suite 8.8.11 on CentOS 7

awstats installation