Skip to content

Instantly share code, notes, and snippets.

Patrick Kastner kastnerp

Block or report user

Report or block kastnerp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kastnerp
kastnerp / .htaccess
Created Aug 4, 2019 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
View .htaccess
#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/
@kastnerp
kastnerp / .htaccess
Created Aug 4, 2019 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
View .htaccess
#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/
@kastnerp
kastnerp / gist:c5f079b2f396dd7d7e91a00528d00a58
Created Jul 6, 2019
DataTree to List of Lists (works only in scripting component)
View gist:c5f079b2f396dd7d7e91a00528d00a58
public static List<List<T>> ToListOfLists<T>(DataTree<T> tree)
{
List<List<T>> list = new List<List<T>>();
foreach (List<T> b in tree.Branches)
{
list.Add(b);
}
return list;
}
You can’t perform that action at this time.