Skip to content

Instantly share code, notes, and snippets.

@flyingluscas
Created December 1, 2016 23:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save flyingluscas/75fd0b98b2629471cce3b63aa841ca3d to your computer and use it in GitHub Desktop.
Save flyingluscas/75fd0b98b2629471cce3b63aa841ca3d to your computer and use it in GitHub Desktop.
Laravel em servidor compartilhado

Dentro da sua pasta public_html ou www, crie um arquivo .htaccess com o seguinte conteúdo:

RewriteEngine on

RewriteCond %{HTTP_HOST} ^seudominio.com.br$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.seudominio.com.br$
RewriteCond %{REQUEST_URI} !public/
RewriteRule (.*) /public/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment