I have my controller names set up as “My_Controller”. I’m looking for a way to change my URL from http://www.mysite.com/My_Controller/My_Action
to http://www.mysite.com/my-controller/my-action/.
Is there anyway to do this without using a URL re-writer extension? If so, how?
You can use a routehandler.
..and add it to your route like this:
This will mean that, whenever you have a controller named “Example_Controller” with an action called “Example_Action”, you will be able to call it with /example-controller/example-action