my url
e.g http://me.mydomain.com/admin/view/1
that url reached clicking list item
e.g http://me.mydomain.com/admin/list
hence number 1 in first url stands id.
but when manually put in url
e.g http://me.mydomain.com/admin/view/asdfasdf1234
and pressed enter key of keyboard, getting error says
unable resolve request "http://me.mydomain.com/admin/view/asdfasdf1234".
how handle error ?
in case, took files git repository in windows , localhost dev environment , gave me error url not found error404 , that.
step1- change config/main.php follows
'urlmanager' => array( 'urlformat' => 'path', 'showscriptname' => false, 'rules' => array( '/' => '/view', '//' => '/', '/' => '/', ), )
step-2 modify ur application .htaccess file , shoul outside protected folder rewite-rules follows.... rewriteengine on
# if directory or file exists, use directly rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d # otherwise forward index.php rewriterule . index.php
step 3- restart apache.and check in browser
step4- change http.config allow override , inplace of none.(for security point of view recheck step).
this may or may not you
Comments
Post a Comment