Skip to content

Instantly share code, notes, and snippets.

@mcamiano
Created October 15, 2013 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcamiano/6996169 to your computer and use it in GitHub Desktop.
Save mcamiano/6996169 to your computer and use it in GitHub Desktop.
Laravel roots suddenly blow up

Check your .htaccess

Did some major work in a repo, and then suddenly find none of your routes working?

Maybe you blew away a .htaccess file that was being .gitignored ?

http://www.epigroove.com/blog/laravel-routes-not-working-make-sure-htaccess-is-working

The default setup of laravel uses mod_rewrite. This wont work in our environment because we do not have mod_rewrite available.

My immediate workaround is to create a .htaccess that does this:

DirectoryIndex index.html index.php

and a splash page that client-redirects to index.php:

index.html:
<script>
window.location="index.php";
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment