Skip to content

Instantly share code, notes, and snippets.

@Bardyl
Created July 15, 2013 18:41
Show Gist options
  • Save Bardyl/6002314 to your computer and use it in GitHub Desktop.
Save Bardyl/6002314 to your computer and use it in GitHub Desktop.
[category]
url = "(\S+)-(\d+)-1.html"
controller = "page"
action = "category"
map[2] = "id"
rurl = "%s-%d-1.html"
[subCategory]
url = "(\S+)-(\S+)-(\d+)-2.html"
controller = "page"
action = "subCategory"
map[3] = "id"
rurl = "%s-%s-%d-2.html"
[single]
url = "(\S+)-(\S+)-(\S+)-(\d+)-3.html"
controller = "page"
action = "single"
map[4] = "id"
rurl = "%s-%s-%s-%d-3.html"
[references]
url = "references\/(\S+)-(\d+).html"
controller = "page"
action = "references"
map[1] = "id"
rurl = "references/%s-%d.html"
[referenceDetail]
url = "references\/detail\/(\S+)-(\d+)-detail.html"
controller = "page"
action = "referencesDetail"
map[1] = "id"
rurl = "references/detail/%s-%d-detail.html"
[formation]
url = "formations\/(\S+)-(\d+)-formation.html"
controller = "page"
action = "formation"
map[1] = "id"
rurl = "formations/%s-%d-formation.html"
[searchModule]
url = "recherche.html"
controller = "ergonomie"
action = "searchModule"
rurl = "recherche.html"
[contactGeneric]
url = "envoicontact.html"
controller = "contact"
action = "contactGeneric"
rurl = "envoi-contact.html"
[conseils]
url = "conseils\/(\S+)-(\d+)-conseil.html"
controller = "page"
action = "conseils"
map[1] = "id"
rurl = "conseils/%s-%d-conseil.html"
[contact]
url = "contact.html"
controller = "page"
action = "contact"
rurl = "contact.html"
[partenaires]
url = "partenaires.html"
controller = "page"
action = "partenaires"
rurl = "partenaires.html"
[admin]
url = "admin\/index"
controller = "admin"
action = "index"
rurl = "admin/index"
[admin-accueil]
url = "admin\/page-accueil"
controller = "admin"
action = "accueil"
rurl = "page-accueil"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment