Facebook resim ve php yönlendirme

0 Cevap php

Bu bir soru kadar izleyin this one.

I have one server, with two domains associated with it (tactica.de and ibeat.us). Now in my root folder I put an index.php that redirects users to the appropriate page, like this:

<?php
$url = $_SERVER['HTTP_HOST'];
if (!eregi("ibeat",$url)) {
    header('Location: http://tacticadev.wordpress.com/');
}
else {
    header('Location: http://tactica.de/ibeat/index.html');
}
?>

Now when I put the URL's "www.ibeat.us/index.php", "www.tactica.de/index.php" or even just "www.tactica.de" in a facebook-status the thumbnail-pictures show appropriately. If I just add "www.ibeat.us" it doesn't even load a thumbnail, just shows the link without picture immediately! Does anybody here have experiences with this, he may share?

0 Cevap