Hello,
Now users can access via
/blog/index/
blog/.html
/blog/index.html
/index.html (cause ‘’ rautes to /blog/index/
I want it to be a single url, how this can be done?
Hello,
Now users can access via
/blog/index/
blog/.html
/blog/index.html
/index.html (cause ‘’ rautes to /blog/index/
I want it to be a single url, how this can be done?
Hi,
try setting ‘useStrictParsing’ to true
'urlManager'=>array(
(...other configuration...)
'useStrictParsing'=>true,
(...other configuration...)
),
You can also set CController::$defaultAction to null and try to overwrite CController::missingAction() to redirect you (301) to the propper url if there is no actionId specified in missingAction and throw CHttpException otherwise.
Didn’t try it though, but maybe it will work ![]()
thanks, useStrictParsing works like magic…