How to create .htaccess file for Laravel app on Hostinger

If you upload a laravel app to hostinger.com, make sure you have an .htaccess file with the below contents in the root folder of your laravel app… typically inside the public_html directory

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