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 is 1.2.3.4.5 and my URL to access it is abc.com Then If I load abc.com page opens but the js css and images are coming from 1.2.3.4.5/.. instead of abc.com/... And links are going to 1.2.3.4.5/contact instead of abc.com/contact
I am using laravel's methods to make these URLs
Are you using some kind of proxy? In that case you could set the trusted proxies.
There is configuration for server adress somewhere in laravel so i guess that's set to http://IP If im not wrong its in app configuration
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community