Welcome Guest, Not a member yet? Register   Sign In
CI in a subfolder
#6

[eluser]Azafar[/eluser]
@hcabbos i can help you to fix your problem cause i have been set the codeigniter's environment on windows, linux and ubantu as well. But i am not understanding what is ur actual problem. Let me tell you the way how we set the environment in windows with and without htaccess.

Without htaccess

Step1: Place your CI files in your subdirectory
Step2: Modify Config file and change the base_url according to your sub directory eg
$config['base_url'] = "http://domain.com/test/";
This is the only change in your config file

With htaccess

Step1: Enable mode_rewrite.so from your httpd.conf
Step2: Place all of your ci files in your sub directory
Step3: Open config file and do the following changes
$config['base_url'] = "http://domain.com/test/";
$config['index_page'] = "";
save it and close the config file
Step4: Place the .htaccess file and enjoy codeigniter Smile
Note: Don't forget to mention sub directory name in your htaccess. And if you are using CI without htaccess $config['index_page'] should not be empty.

These are some steps to set CI environment on windows. Hope it will work for you. Sorry if i missed anything.

Regards...........


Messages In This Thread
CI in a subfolder - by El Forum - 03-30-2010, 01:56 AM
CI in a subfolder - by El Forum - 03-30-2010, 02:02 AM
CI in a subfolder - by El Forum - 03-30-2010, 07:05 AM
CI in a subfolder - by El Forum - 03-30-2010, 09:52 AM
CI in a subfolder - by El Forum - 03-30-2010, 02:59 PM
CI in a subfolder - by El Forum - 03-31-2010, 12:27 AM
CI in a subfolder - by El Forum - 03-31-2010, 06:34 AM
CI in a subfolder - by El Forum - 03-31-2010, 07:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB