Skip to content

Instantly share code, notes, and snippets.

@joshmvandercom
Created January 19, 2012 15:57

Revisions

  1. Josh Vandergrift revised this gist Jan 19, 2012. No changes.
  2. Josh Vandergrift revised this gist Jan 19, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .htaccess
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,7 @@ RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{QUERY_STRING} !ajax
    RewriteRule ^(.*)$ /#/$1 [R=301,L,NE]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
  3. Josh Vandergrift revised this gist Jan 19, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .htaccess
    Original file line number Diff line number Diff line change
    @@ -5,5 +5,7 @@ RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /#/$1 [R=301,L,NE]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
  4. Josh Vandergrift revised this gist Jan 19, 2012. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion .htaccess
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_URI} !\.(png|jpg|swf|css|pdf|gif|html|php)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /#/$1 [R=301,L,NE]
  5. Josh Vandergrift revised this gist Jan 19, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .htaccess
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,8 @@ RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_URI} !\.(png|jpg|swf|css|pdf|gif|html|php)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /#/$1 [R=301,L,NE]
    RewriteRule . /index.php [L]
    </IfModule>
  6. Josh Vandergrift revised this gist Jan 19, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .htaccess
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_URI} !\.(png|jpg|swf|css|pdf|gif)$ [NC]
    RewriteCond %{REQUEST_URI} !\.(png|jpg|swf|css|pdf|gif|html|php)$ [NC]
    RewriteRule ^(.*)$ /#/$1 [R=301,L,NE]
    RewriteRule . /index.php [L]
    </IfModule>
  7. Josh Vandergrift revised this gist Jan 19, 2012. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions .htaccess
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,8 @@
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_URI} !\.(png|jpg|swf|css|pdf|gif)$ [NC]
    RewriteRule ^(.*)$ /#/$1 [R=301,L,NE]
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
  8. Josh Vandergrift revised this gist Jan 19, 2012. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion .htaccess
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,10 @@
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} !\.(png|jpg|swf|css|pdf|gif)$ [NC]
    RewriteRule ^(.*)$ /#/$1 [R=301,L,NE]
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)!(css|js|swf|jpg|gif|png)$ /#/$1 [R=301,L,NE]
    RewriteRule . /index.php [L]
    </IfModule>
  9. Josh Vandergrift revised this gist Jan 19, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .htaccess
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,6 @@ RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /#/$1 [R=301,L,NE]
    RewriteRule ^(.*)!(css|js|swf|jpg|gif|png)$ /#/$1 [R=301,L,NE]
    RewriteRule . /index.php [L]
    </IfModule>
  10. Josh Vandergrift revised this gist Jan 19, 2012. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion .htaccess
    Original file line number Diff line number Diff line change
    @@ -1 +1,9 @@
    RewriteRule ^(.*) http://jacksongreenberg.com/#/$1
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /#/$1 [R=301,L,NE]
    RewriteRule . /index.php [L]
    </IfModule>
  11. Josh Vandergrift created this gist Jan 19, 2012.
    1 change: 1 addition & 0 deletions .htaccess
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    RewriteRule ^(.*) http://jacksongreenberg.com/#/$1