Skip to content

Instantly share code, notes, and snippets.

@paulstefanort
Created July 28, 2011 03:45
Show Gist options
  • Save paulstefanort/1110929 to your computer and use it in GitHub Desktop.
Save paulstefanort/1110929 to your computer and use it in GitHub Desktop.
Redirect standard URLs to hash URLs (for AJAX sites).
RewriteEngine On
RewriteRule ^([a-zA-Z0-9\-\_]+)([\/]*)$ /#\/$1 [R=301,L,NE]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment