Skip to content

Instantly share code, notes, and snippets.

@dotMastaz
dotMastaz / dom-routing.js
Created May 7, 2014 22:19
DOM-Based Routing
/* ========================================================================
* DOM-based Routing
* Based on http://goo.gl/EUTi53 by Paul Irish
*
* Only fires on body classes that match. If a body class contains a dash,
* replace the dash with an underscore when adding it to the object below.
*
* .noConflict()
* The routing is enclosed within an anonymous function so that you can
//WP, Admin Bar, Disable
add_filter('show_admin_bar', '__return_false');
@dotMastaz
dotMastaz / .htaccess
Created November 22, 2013 15:18
WordPress 406 Error Fix
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress