Installing CodeIgniter in Subdomain Problem |
[eluser]robert.dejesica[/eluser]
Hi Guys I have this little problem I installed my codeigniter application into subdomain http://mysubdomain.domain.com/ If im going to visit this site the routes work's fine. it go to default routes. However if im going to visit something like this http://mysubdomain.domain.com/controller/ it gives me an error Page Not Found This is my .htaccess Code: Options +FollowSymLinks Any reply is appreciated.
[eluser]slhawkins[/eluser]
To be honest I wouldn't have any idea what's wrong and what makes mod_rewrite do what.. But I just started working with CI the other day and have been testing it on a subdomain myself. Below is my .htaccess... To be honest though, the biggest problem I had was to make sure the module was loaded, so I would double check that your mod_rewrite is loaded. Probably the simplest way to do that would be a simple phpinfo() call. Scroll down to the 'apache2handler' table and it should have a row labeled 'Loaded Modules'. mod_rewrite should be in there.. Code: <IfModule mod_rewrite.c>
[eluser]robert.dejesica[/eluser]
hi slhawkins for thanks the reply. I replaced my .htaccess to your provided code. but I still get the same error. I forgot to mention also that subdomain is hosted in separate box from the domain. I'm not sure if it's an issue.
[eluser]slhawkins[/eluser]
Did you verify if mod_rewrite is loaded? I know it sounds stupid.. but it had me stumped for a little bit.
[eluser]robert.dejesica[/eluser]
yup it's loaded. the weird thing here is I have also site built in CI hosted in that server and its work fine.
[eluser]slhawkins[/eluser]
Only thing I can think of is the config variables.. Code: $config['index_page'] = ""; Apologies, just started working with CI yesterday ![]()
|
Welcome Guest, Not a member yet? Register Sign In |