The question is: There is an application server, there are also pictures for the application. We make a website for it, and connect to that server for pictures. I would like to hide the server address from the url

Well, that is, here now something like this in the code src = "123.123.123.123:1337/images/abcd.jpg", but you need to completely hide the ip.

I know that it seems that a redirect can be set up on a php file through which the pictures will be taken and the user will be shown the picture on the server of the same site, but I can’t understand how to do it all right.

Or at least replace ip with a more sane address

  • one
    This is what really is not necessary - to drive pictures through pkhp. redirect external can do in htakssse, for example. - teran pm
  • @teran here I saw an attempt to do as I need, but does not want to work. Bad idea? - 新鮮 な 風 穏 や か な
  • bad It makes sense to display the images of the PCP only if you need to process some logic before that, for example, check access rights or else it. To give static content pkhp not needed, it is not his work and in general only waste of server resources. - teran

0