Skip to content

Instantly share code, notes, and snippets.

@kikmedia
Last active February 16, 2017 12:28
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 kikmedia/fadcd009dc2df049394d to your computer and use it in GitHub Desktop.
Save kikmedia/fadcd009dc2df049394d to your computer and use it in GitHub Desktop.
Make Contao handle all #404 errors
ErrorDocument 404 /index.php
## Force SSL
RewriteCond %{SERVER_PORT} 80
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment