Skip to content

Instantly share code, notes, and snippets.

@tyrannosaurusjames
Last active August 29, 2015 14:00
Show Gist options
  • Save tyrannosaurusjames/11388362 to your computer and use it in GitHub Desktop.
Save tyrannosaurusjames/11388362 to your computer and use it in GitHub Desktop.
Remove SS default controller route
<?php
$rules = Config::inst()->get('Director', 'rules');
unset($rules['$Controller//$Action/$ID/$OtherID']);
Config::inst()->remove('Director', 'rules');
Config::inst()->update('Director', 'rules', $rules);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment