Well, if they are different domains, you can register the absolute path to the images, for example, instead of "/uploads/news/123.jpg" - "
https://example.com/uploads/news/123.jpg"the only way. If the sites are different, hence the file system they are not one and the same, and generally they are on different servers, that is the relative address to use in any way, but it is always the absolute url to use.
but to write domain - this is nonsense.
then the statics will be leaving to another server and all links to rewrite - ottilie51 commented on April 19th 20 at 12:27
<img src="/uploads/news/123.jpg">
this is a relative.But I maintain that absolute write is bad. - Andres41 commented on April 19th 20 at 12:30
A path beginning with
/
is a path relative to the site root. And because it is relative, not absolute, and it does not work when you migrate links or file path (in this case image) to another domain. - Andres41 commented on April 19th 20 at 12:36