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

resultoffice's avatar

How to install laravel 9 in addon domain on cpanel

I have a addon domain on cpanel, inside the addon domain I created a folder lsc containing my laravel installation this way domainname/laravelfolder, the problem is laravel the laravel folder is taken me to lsc/public and I cant seem to view other pages the error is:

404
Not Found
The resource requested could not be found on this server!

what can I do to solve this I have already use:

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

Yet no solution. Thanks.

Please only solution and if you don't know it or have solution don't come here to say anything trash, you can either have the answer or you don't because I am not a respecter of a fool.

0 likes
1 reply

Please or to participate in this conversation.