Welcome Guest, Not a member yet? Register   Sign In
Missing index.php even no .htaccess [Please help]
#1

[eluser]Desmond[/eluser]
I have a current codeigniter website passed by others.
Due to my server don't accept mod_rewrite activated, I need to use back index.php

However, after I blank the .htaccess, change back $config['index_page'] = 'index.php';
All of my links are still missing index.php.
Any idea what is happening, how to resume index.php in the link?

for example: www.abc.com/home/shop
I hope it can change back to www.abc.com/index.php/shop
($route['default_controller'] = "home"Wink

I am using codeIngiter 2.0.
And whatever I changed $config['index_page'] = 'index.php', even I deleted it, no different appear to the web.

Please help. Thanks so much.
#2

[eluser]CroNiX[/eluser]
Most likely the previous coders created their links by hand instead of using the CI URL helpers like anchor(), site_url() and base_url(), which will correctly generate the urls for the site based on the base_url and index_page settings (except base_url() doesn't use index_page as it's not needed). If either of these two values get changed, the links will automatically be corrected with the changes when using the url helper functions. Check in the view files to see how the links were created.




Theme © iAndrew 2016 - Forum software by © MyBB