Darrell Posted July 7, 2013 Share Posted July 7, 2013 Is there a way to hide the default controller's name from the URL? So instead of using http://www.domain.com/site/contact it would just be http://www.domain.com/contact ?? I only want the default controller's name hidden, not the others. This way I can still have a path as http://www.domain.com/page/view if I wanted to. Link to comment Share on other sites More sharing options...
Larry Posted July 8, 2013 Share Posted July 8, 2013 Good question! If it's a static, simple case, such as /contact being redirected to site/contact, you can define exactly that as your first rule. So instead of using a flexible, regular expression-like construct such as \w, you'd just use "contact". Link to comment Share on other sites More sharing options...
Darrell Posted July 12, 2013 Author Share Posted July 12, 2013 Sweet! Thanks Larry. Link to comment Share on other sites More sharing options...
Recommended Posts