Skip to main content

Things to remember while deploying Laravel Apps

Published 1 min readMarkdown

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>

No comments yet. Be the first to comment.