view - Codeigniter index.php page -


i'd set default page script views directory, example \application\views\index.php , delete index.php file root of application. possible? (i tried change value of config['index_page'] like, gives me error page not found).

or maybe codeigniter has strict project structure can't such changes?

you can't delete index.php file root directory, instead of can remove index.php url.

you have define default controller first, follow steps

have the.htaccess file in application root directory, along index.php file. (check if htaccess extension correct , bz htaccess.txt did not work me.)

and add following rules .htaccess file,

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

then find following line in application/config/config.php file

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

set variable empty below.

$config['index_page'] = ''; 

that's it, worked me.

if doesn't work further try replace following variable these parameters ('auto', 'path_info', 'query_string', 'request_uri', , 'orig_path_info') 1 one

$config['uri_protocol'] = 'auto'; 

Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -