Welcome Guest, Not a member yet? Register   Sign In
Routing not working in the Linux server
#1

[eluser]Shiju S S[/eluser]
The apps is loading in the server but the routes are not working:

Code:
$route['adminarea'] = 'admin/adminarea';
$route['adminlogin/(:any)'] = 'admin/adminlogin';
$route['adminlogout/(:any)'] = 'admin/adminlogout';

$route['confirmpassword'] = 'admin/admineditpassword';
$route['exeregister'] = 'admin/admin_exe_registration';
$route['exeformsave'] = 'admin/registration_insert_data';

$route['addfields/thaluk/(:any)'] = "addfieldsdir/addfields/thaluk/$1";

$route['addfields/adddistrict'] = 'addfieldsdir/addfields/adddistrict';
$route['addfields/addstate'] = 'addfieldsdir/addfields/addstate';
$route['addfields/addcountry'] = 'addfieldsdir/addfields/addcountry';
$route['addfields'] = 'addfieldsdir/addfields';

$route['frontpage'] = "frontpage";
$route['default_controller'] = "frontpage";
$route['404_override'] = '';

The directory structure is
root: quickbharath
application
controllers
frontpage - php controller file

admin - dir - includes controller files for admin
addfields - dir - "
view - dir - all view files

The htaccess file contains:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

The server is located in godaddy.com

I will be extremely grateful i someone can help me
#2

[eluser]Jason Stanley[/eluser]
Rename the htaccess file, reinstate the index.php in the config file. Does that work?

If it still doesn't work play around with "$config['uri_protocol']" until you find one that works.
#3

[eluser]InsiteFX[/eluser]
Search the forums here for GoDaddy, lots of people have trouble configuring their .htaccess files to work with them.
#4

[eluser]vbsaltydog[/eluser]
Godaddy does for web hosting what IE does for web browsing.




Theme © iAndrew 2016 - Forum software by © MyBB