Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mariojankovic/c396590d11aeac0eb8dd4372be749ff6 to your computer and use it in GitHub Desktop.
Save mariojankovic/c396590d11aeac0eb8dd4372be749ff6 to your computer and use it in GitHub Desktop.
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !\.(js|css|gif|jpg|jpeg|png|ico|swf|pdf|html|php|json|svg)$
RewriteCond %{REQUEST_URI} !^index
RewriteRule (.*) index.html [L]
</ifModule>
@chischte
Copy link

Implemented it (lines 2 to 5 only) and voilà ... I can now reload all pages without crashing and jump directly to bookemarked URLs.

Thank's a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment