Wave Setup Issue, domain and images not loading
Hi Everyone,
I'm having a couple of issues with my Wave setup, I've just installed a fresh copy to my domain (web host not localhost) and the 2 issues are as follows.
-
going to mydomain.co.uk returns a 404 error but going to mydomain.co.uk/public loads the site just fine.
-
Images (Profile Image etc) wont load.
I've googled around and the common solution seems to be changing the APP_URL but from all the things I've tried nothing seems to make a difference for me.
Please can anyone offer a solution? Currently my APP_URL is set to https://localhost:8000 but I've also tried https://mydomain.co.uk with & without port.
Many Thanks
I believe both of those may be fixed by adjusting your Web Server to redirect to the public directory in your project folders.
Hello,
As @keystirras23 said the best way to solve this is to change your document root to load the files from the public directory directly.
Alternatively, if you are on a shared server and you don't have the access to do so, you can use the following .htaccess
rule:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
Best,
Bobby