php - Call to DB and Files outside the Public Folder - CodeIgniter -


first post ! ... , i'm in need of :d

we using code-igniter base frame our website (custom tailored). way it's programmed, can call website files , databases stored outside public folder (for security reasons), had domain/server transition few days back, , website broken because it's not allowing calls (system_path).

after research, found possible cause server not support request_uri variable. so, did work around, no results.

the main web works fine, error other ulrs one:

internal server error

the server encountered internal error or misconfiguration , unable complete request.

please contact server administrator @ webmaster@mydomainname.net inform them of time error occurred, , actions performed before error.

more information error may available in server error log.

additionally, 500 internal server error error encountered while trying use errordocument handle request.

i have tried suggestions of codeigniter troubleshoot page, because in doubt server supporting request_uri variable needed serve search-engine friendly urls, since can see own index page other url's codeigniter printing above error.

on config file have:

------------------------------------------------------------------- | index file |-------------------------------------------------------------------------- | | typically index.php file, unless you've renamed | else. if using mod_rewrite remove page set | variable blank. | */  $config['index_page'] = "index.php?";  /* |-------------------------------------------------------------------------- | uri protocol |-------------------------------------------------------------------------- | | item determines server global should used retrieve | uri string.  default setting of 'auto' works servers. | if links not seem work, try 1 of other delicious flavors: | | 'auto'   default - auto detects | 'path_info'  uses path_info | 'query_string' uses query_string | 'request_uri'  uses request_uri | 'orig_path_info' uses orig_path_info | */ $config['uri_protocol'] = "request_uri"; 

and on index file have:

/*  *---------------------------------------------------------------  * system folder name  *---------------------------------------------------------------  *  * variable must contain name of "system" folder.  * include path if folder not in same  directory  * file.  *  */  $system_path = 'pik';  /*  *---------------------------------------------------------------  * application folder name  *---------------------------------------------------------------  *  * if want front controller use different "application"  * folder default 1 can set name here. folder  * can renamed or relocated anywhere on server.  if  * do, use full server path. more info please see user guide:  * http://codeigniter.com/user_guide/general/managing_apps.html  *  * no trailing slash!  *  */  $application_folder = 'sam'; 

as can see, changed

$config['index_page'] = "index.php"; 

to

 $config['index_page'] = "index.php?";  

yet, not working.

is config in here ? :

/* |-------------------------------------------------------------------------- | uri protocol |-------------------------------------------------------------------------- | | item determines server global should used retrieve | uri string.  default setting of 'auto' works servers. | if links not seem work, try 1 of other delicious flavors: | | 'auto'   default - auto detects | 'path_info'  uses path_info | 'query_string' uses query_string | 'request_uri'  uses request_uri | 'orig_path_info' uses orig_path_info | */ $config['uri_protocol'] = "request_uri"; 

also, what can set or add request_uri support on server ?
highly appreciated !


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -