According to what you are saying, it seems to be a misconfiguration in the CPanel.
In the CPanel, you have to declare the public folder of your app : https://domain/public/.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm building an Inertia application (laravel/vue3) and it works just fine locally on my dev pc. But when I try to deploy it to CPanel it does not work. Specifically it references https://domain/js/app.js in the html file instead of https://domain/public/js/app.js. Can someone help me if it is a Laravel, CPanel(.htacces) or Mix issue?
Please or to participate in this conversation.