Skip to content

Instantly share code, notes, and snippets.

View joshhumble's full-sized avatar

Josh Humble joshhumble

View GitHub Profile
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@joshhumble
joshhumble / dabblet.css
Created November 19, 2012 18:03 — forked from LeaVerou/dabblet.css
Vertical centering with Flexbox + margin fallback
/**
* Vertical centering with Flexbox + margin fallback
* Lea Verou & David Storey
*/
html, body { height: 100%; margin: 0; width: 100%; }
body {
/* Flexbox hawtness */
display: box;