Welcome Guest, Not a member yet? Register   Sign In
removing index.php while using virtual host
#1

[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
#2

[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']
#3

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




Theme © iAndrew 2016 - Forum software by © MyBB