I have a url in my application in this format:
https://www.example.com/user/view/page/how-it-works
I want to rewrite it in following format:
https://www.example.com/how-it-works
I applied following rules in main.php
'<page:([-a-z]+)>'=>'user/view/',
It works fine but creates problem for other controller and action.
Example
If i enter www.example.com/user
Then it give 404, Page Not Found error
but works fine for
Please help me. Its very urgent.