Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

giacomofigus's avatar

Error 403 Forbidden Vue Laravel deploy

Im deploying a Vue and Laravel project on Hostinger. Vue is in the public_html folder and Laravel is in the subdomain folder. It gives me error 403 but when i move file index.php and .htaccess outside the public folder it works (i know its wrong), how can i resolve this? (Is the first website im deploying)

0 likes
1 reply
giacomofigus's avatar

RESOLVED: Create a file .htaccess on the subdomain folder (not only on the public folder) with this code: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] </IfModule>

Please or to participate in this conversation.