Get exclusive CAP network offers from top brands

View CAP Offers

Reply To: Protect your domain from hijacking

[bsa_pro_ad_space id=2]
#667183
Anonymous
Inactive

Hi,
one quick question. Currently trying to install the code, but having some problems. Which parts of the code need to be edited?


RewriteEngine on
RewriteCond %{HTTP_HOST} !^http://www.domain.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://www.domain.com/$1 [R=301,L]

Only the domain name, or also anything else? Can I place this code anywhere in the .htaccess file, or does it have to be in a specific spot?
I’m still very new to this stuff!

Thanks for your help,

burgi