URLManager Rule: Hide Controller from URL

I have this URL Manager rule



Which rewrites my URLs to something like


blog being module, post is controller and hosanna is GET parameter (called blog)

Now I want to get rid of post in URL and have something like


which is much better for me but I have no idea how do I do it!

Any help is appreciated!

You can leave out the name of the controller from the URL and specify it in the route:


In case this rule applies only to the Blog module it can also look like this:


I’d just consider renaming the “blog” parameter to something more apt (e.g. “name”, “slug”, …).

That was it! Thanks a lot!

as per that naming, I find it comfortable to do that way!