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

RoughLik's avatar

Problem when deploy Laravel + Vue project rest api on shared hosting cPanel

Hi, I uploaded my projects in public_html, they are still water and are in different folders The problem is when I want to access the template url in vue.js All compiled files go to the dist folder but they appear to me as not being found.

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
  RewriteCond %{HTTPS} off
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  AddType application/javascript .js
  AddCharset utf-8 .js
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php73___lsphp .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

I put this hatches on list folder

So far I haven't linked public_html to the dist folder but I have accessed the direct url base_url / client / dist / index.html But again, it doesn't show anything

So, what can be the problem why I can't acces the project? On local all is fine

0 likes
0 replies

Please or to participate in this conversation.