Skip to content

Instantly share code, notes, and snippets.

View adampiotrowski's full-sized avatar

Adam Piotrowski adampiotrowski

View GitHub Profile
@potfur
potfur / gist:8954044
Last active August 29, 2015 13:56
Self nesting category [nested set]
<?php
namespace gist;
/**
* Self nesting node
* Can use parent_id/order or left/right nested set or convert one to another
*
* @package gist
* @author Michal Wachowski <wachowski.michal@gmail.com>
*/
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#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/