Now i want prevent the user from accessing to site/signin directly. how can i do it? Do the following solution is a suitable way?
'signin'=>'site/signin'
'site/signin'=>'signin' // This URL not exist and give a 404 error to user if the user want will access to [b]site/signin[/b] directly.
When the user requests this url website/site/singin, the URL not accessible for user. Only through website/signin URL the user can access to website/site/singin. In fact the user can only access to the defined pattern in CUrlManager rules(first post) and cannot access towebsite/site/singin directly.[b]