Skip to content

Instantly share code, notes, and snippets.

@solepixel
Created August 29, 2015 12:54
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 solepixel/e1a847d1a4b6863b0c26 to your computer and use it in GitHub Desktop.
Save solepixel/e1a847d1a4b6863b0c26 to your computer and use it in GitHub Desktop.
Hash signs in URI
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{THE_REQUEST} /([^?\ ]+)
RewriteRule (.*) index.php/%1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment