CodeIgniter Forums
removing index.php while using virtual host - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: removing index.php while using virtual host (/showthread.php?tid=22630)



removing index.php while using virtual host - El Forum - 09-15-2009

[eluser]jayapalchandran[/eluser]
Hi,
I have the project named as cg and i have saved in d:\cg . i have set the virtual host as caseg.com which will load the index in d:\cg . i tried to remove the index.php from the url by using .htaccess of your example and editing the config files to remove "index.php" to "". i accessed the admin folder as caseg.com/admin and it did not appear... where as home page appeared...

i have pasted admin folder in controller/admin ... what should i do


removing index.php while using virtual host - El Forum - 09-16-2009

[eluser]jedd[/eluser]
Hi jayapalchandran and welcome to the CI forums.

I think you need to give us a bit more information. I gather you're using Apache (?) - but you should probably spell these things out when reporting a problem, as well as version numbers (there's some relevant differences, for example, in the way that Apache 1.x and Apache 2.x work).

Could you show us your .htaccess file? Put it between [ code ] tags when you post it, so it really stands out.

You might also post the two sections in your config/config.php file - specifically $config['base_url'] and $config['index_page']


removing index.php while using virtual host - El Forum - 09-16-2009

[eluser]moodh[/eluser]
I just put the rewriteconds/rules in the virtual host block, requires a restart but it worked =)