Deploying on cpanel


#1

Hi,

I have access to top folders on my shared hosting server. Now I matched the slim project structure with my hosting folder structure, even then when I hit my website it gives me 500 error.

Any suggestions please.


#2

What does the error log say?


#3

So I fixed it by replacing following code from .htaccess file:

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

TO

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]