Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

149
Vistas
Deploying Laravel App on Shared hosting securely

It seems there are a lot of different approaches to deploying a laravel application on shared hosting based on some googling. I understand it's different per hosting provider, but I'm looking for a simple and secure way to do this.

Right now I have a symlink from /home/username/laravel-src/public to /home/username/public_html. This gets my application on my domain, although under the public route (ie. www.domain-name.com/public). I can fix this easily by updating my .htaccess file in my public_html director to the following:

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

I've seen this suggested in other posts, but people are saying this is not a secure approach and I'm wondering why? Isn't this just redirecting requests from / to /public internally? None of the src or env files are exposed...are they??

And if there are security concerns around this, is there at all a secure way to deploy a laravel app to shared hosting?

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda