route codeigniter not load the page -


my problem route of codeigniter, i'm working , each function wrote route. when put last route, 1 not working , give me 404 error. don't know why? maybe i'm doing mistake order of route think right. route:

 //match share // route not working      $routes['upload_image/upload_photo'] = "upload_image/upload_photo";   //all route working     //votation//     $route['auth_social/fblogin'] = "auth_social/fblogin";     $route['votation/user_plus/(:any)'] = "votation/user_plus";     $route['votation/user_minum/(:any)'] = "votation/user_minum";        $route['finish_registration/(:any)/(:any)'] = "auth/activate"; // activate e-mail     $route['auth'] = "auth"; // index auth     $route['register'] = "auth/register";     $route['login'] = "auth/login"; // login     $route['logout'] = "auth/logout";     $route['default_controller'] = "auth/register"; // register      $route['(:any)'] = "profile/user";      $route['404_override'] = ''; 

htaccess

rewriteengine on rewritecond $1 !^(index\.php|resources|robots\.txt) rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php?/$1 [l] 

try:

$routes['upload_image/upload_photo/?']    = "upload_image/upload_photo"; $routes['upload_image/upload_photo/(.+)'] = "upload_image/upload_photo/$1"; 

if need have uri segments, current 1 won't work.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -