There is a picture http://kartinka.com.ua/images/2_mainpage.png

Is it possible using .htaccess or php to make it visible at http://мойсайт.ΠΊΠΎΠΌ/img/2_mainpage.png ?

    1 answer 1

    Yes it is possible. Here is the simplest example:

    Content .htaccess :

     RewriteEngine On RewriteRule ^images/2_mainpage.png$ /test.php [L] 

    Content test.php :

     <?php header("Content-Type: image/png"); echo file_get_contents('http://kartinka.com.ua/images/2_mainpage.png'); 
    • and if 15000 news and in each picture?) - Denis
    • one
      @Denis, I think, then that site will block your server’s ip for access :) - Visman
    • @Denis The approach will not change if you do not want to store pictures at home. Or are you asking for redirection masks? So I specifically left the implementation of the masks for you, because you cannot assemble a mask from one example. - VenZell
    • that is not) there are almost all different sites with pictures) - Denis