Saturday, December 25, 2021

Hosting Laravel Application in CPanel public folder issue.

 In Laravel Application, We have have our index.php file inside public folder, but in CPanel by default they have public_html directory as home directory.

To avoid this problem, we need to create .htaccess file in public folder with the below content.

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteRule ^(.*)$ public/$1 [L]

</IfModule> 

No comments:

Post a Comment

XAMPP MySql Crash issue

 This is as a result of some files in C:\xampp\mysql\data\mysql getting corrupted. Solution: Back up C:\xampp\mysql\data Copy all file C:\xa...