I have these URL's like
www.xyz.com/blog/index www.xyz.com/tutorial/index
etc - Because I dont want the index to be shown in the URL - I have written routes to fix this issue:
resources.router.routes.blog.route = "/blog/" resources.router.routes.blog.defaults.controller = blog resources.router.routes.blog.defaults.action = index
So now when a user types
www.xyz.com/blog - the index action opens up.
What I want is - when a user enters www.xyz.com/blog/index -
it should get redirected to www.xyz.com/blog
Basically the index should not show up in the URL whether or not the user enters it in the URL - How can I achieve this?
Thanks