问题原文
原帖链接 · Nicoli · CC BY-SA 3.0
An external person from my client company registered a domain and redirected to my client URL.
For instance, if you type unwanteddomain.com it redirects to myclientdomain.com.
Is there any way to block or redirect (for second time) to nowhere the unwanteddomain.com via cPanel or any rewrite rules on .htaccess?
社区高分解答
原帖链接 · Nicoli · CC BY-SA 3.0
Finally resolved using these rewrite rules:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.unwanteddomain.com$ [NC]
RewriteRule .* http://whateverPlaceYouWantToSend.com [R,L]
HTTP_REFERER did not work so I used HTTP_HOST.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
