richrich123
Newbie
- Mar 25, 2012
- 7
- 3
Hello,
I have seen this snippet of code below on a few places which claims to need to be added to the .htacess. i have tried this but all that happens is my index page then gives a 500 internal server error as soon as the code is added to the .htacess
Has anyone got any ideas why this is not working.
Cheers
Rich
I have seen this snippet of code below on a few places which claims to need to be added to the .htacess. i have tried this but all that happens is my index page then gives a 500 internal server error as soon as the code is added to the .htacess
Has anyone got any ideas why this is not working.
Cheers
Rich
<?php
if (strstr($_SERVER[?HTTP_USER_AGENT?], ?Googlebot?)) {
header(?HTTP/1.1 301 Moved Permanently?);
// Insert the site whose PR you want to fake
header(?Location: add your domain?);
exit;
}
else {
// Insert the URL of your real site here
header(?Location: add domain?);
exit;
};
?>