My Laravel site is hosted on a IP to which I am redirecting a URL. The problem is that index page loads but all the css, js and images are being loaded from the IP and not the URL. Even all the internal links are going to that IP. Is laravel creating URLS based only on host IP instead of taking Request URL into acount.
Eg: Suppose my host IP for website is 1.2.3.4/xyz and my URL to access it is sub.abc.com/xyz Then If I load sub.abc.com/xyz page opens but the js css and images are coming from 1.2.3.4/xyz instead of sub.abc.com/xyz And links are going to 1.2.3.4/xyz/contact instead of abc.com/xyz/contact
I am using laravel's methods to make these URLs
Note: xyz folder is being proxypassed to another ip