something not working, have in routes.php file
$route['default_controller'] = 'books'; $route['404_override'] = ''; $route['translate_uri_dashes'] = true; $route['cities']['get'] = 'cities/index'; $route['cities/(:num)']['get'] = 'cities/find/$1'; $route['cities']['post'] = 'cities/index'; $route['cities/(:num)']['put'] = 'cities/index/$1'; $route['cities/(:num)']['delete'] = 'cities/index/$1';
and .htaccess this
options followsymlinks <ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php?/$1 [l] </ifmodule> <ifmodule !mod_rewrite.c> errordocument 404 /index.php </ifmodule>
the problem here when go googlechrome , type url this: ....www.domain.com.mx/project-server/
it send me de default controller books, or welcome, or wherever. when want type on url this
...www.domain.com.mx/project-server/books appear error this: requested url /project-server/cities not found on server.
this project in github https://github.com/cmurra/project-server
change htaccess this
<ifmodule mod_rewrite.c> rewriteengine on rewritebase /<your_root_folder> rewritecond %{request_uri} ^system.* rewriterule ^(.*)$ /index.php/$l [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewritecond $1 !^(index\.php|images|robots\.txt|css) rewriterule ^(.*)$ index.php/$1 [l] </ifmodule> <ifmodule !mod_rewrite.c> errordocument 404 / index.php </ifmodule>
edit
and clarify, think problem codeigniter looking index.php
www.domain.com.mx/project-server/index.php/books
or
www.domain.com.mx/index.php/project-server/books
it's 1 of that
Comments
Post a Comment