i have a qn on urlmanager.
i have set domain.com/ to point to AbcController and action123 by setting defaultController => abc and in AbcController i set public $defaultAction = ‘123’
how do i only allow ‘/’ to access that and not /abc/123 or /abc/123/ ?
I need to do this to prevent duplicate content in the URL
Any help is much appreciated!
Possibly: In action123 check Yii::app()->request->baseUrl for root directory and allow or !root directory and redirect, throw CHttpException(404,’’), or whatever.