PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Wave Setup Issue, domain and images not loading

aaronm

Feb 18th, 2022 06:43 AM

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.

  1. going to mydomain.co.uk returns a 404 error but going to mydomain.co.uk/public loads the site just fine.

  2. 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

keystirras23

Feb 18th, 2022 02:33 PM

I believe both of those may be fixed by adjusting your Web Server to redirect to the public directory in your project folders.

bobbyiliev

Feb 19th, 2022 03:20 AM

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