Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

koenverhulst's avatar

Resource not found (only Locally)

Hi,

I'm currently created a laravel application which will run on a shared host. In order to remove the "/public" part from the URL, I moved the index.php file outside the public directory and changed paths.

My application shows correctly the login (/login) page. After logging in, the application should redirect to /app/dashboard and locally, the message "The requested resource /app/dashboard was not found on this server." is shown. On the shared host, my application does show the dashboard page and thus no error message is shown.

What could be the difference between the local application and the application "deployed" on the shared hosting? Could it have something to with the fact there exists an app directory in the root?

Thanks in advance,

Koen

0 likes
1 reply
koenverhulst's avatar

Update:

In case I create this route (using appS instead op app) it shows "Hello world". Route::get('apps/dashboard', function() { return "Hello world ";});

Using this route (using app) it shows "Resource not found". Route::get('app/dashboard', function() { return "Hello world ";});

Please or to participate in this conversation.