• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[CI 2.x?] 404 Page Not Found error

I am new to codeigniter. I am writing code for subscription management. Initially it works fine in both local and server. Before 2 days i face problem 404 Page Not Found in my server. So i set route. 

$route['default_controller'] = "home";
$route['subscription'] = 'subscription/index';
$route['subscription/subscription/(:any)'] = 'subscription/$1/$2';
$route['subscription/dealer/(:any)'] = 'dealer/$1/$2';
$route['subscription/despatch/(:any)'] = 'despatch/$1/$2';

After that subscription and dealer is working fine. Despatch is not working. 

Then i try to create new method inside controller/subscription/subscription.php 
ie; function test(){
echo "hello";
call like this 
i got error, page not found.

my htaccess file

<IfModule mod_rewrite.c> 
DirectoryIndex index.php
RewriteEngine on
RewriteBase /imanager/
#RewriteRule ^index\.php$ - [L] 
#RewriteCond $1 !^(index\.php|(.*)\.swf|forums|images|css|downloads|jquery|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L] 
#RewriteRule ^(.*)$ ./index.php?$1 [L,QSA]

I am attaching the despatch.php file also.

I am very confused how to solve this error.

Kindly help me.....

Premalatha davis

Attached Files
.php   despatch.php (Size: 19.22 KB / Downloads: 98)

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.