Skip to main content

Command Palette

Search for a command to run...

Things to remember while deploying Laravel Apps

Updated
1 min read

First thing, which is mentioned even in the official Laravel docs is, do not move the files from the public directory and move them to the root. Do not do it at all, rather add this code to the .htaccess file

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>