How to Deploy Laravel Project on cPanel/ Webserver

0
208

1. Upload project on root/public_html

Upload and extract you Laravel project.

2. change PHP version to 7+

change PHP version to 7+

3. Add below code in .htaccess file in root

.htaccess

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

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here