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

Owaiz_Yusufi's avatar

How can I manually upload my Laravel project on cpanel in subfolder directory??

I want to upload my laravel project on cpanel inside app directory

https://mydomain.com/app/

I have search and got

Note:

  1. Wordpress is installed in my main domain -> https://mydomain.com/
  2. I have build my project with vite using npm run build command

Updated my links

0 likes
3 replies
dysentry30's avatar

I tried this method, you can zip the app folder and extract it to the directory you want to place it. After your app folder extracted to your directory, you can add .htaccess file in your root folder app.

.htaccess file

<IfModule mod_rewrite.c>
 
RewriteEngine On
 
RewriteRule ^(.*)$ public/ [L]
 
</IfModule>

Please or to participate in this conversation.