I've a question and in fact I couldn't find solution in the posts. I'm developing a website, and it have subdomains. I want to use latest version of CodeIgniter framework. My structure is shown below:
I put apllication folder in admin and user folder, because I want to show application_main, when url is www.domain.com, and show admin application, when url is www.admin.domain.com, and show user folder, when url is www.user.domain.com.
I've modified windows host file to test these on local, eveything is good work, but there is some problem:
1. I've created htaccess file in root and admin and user folder, to create user friendly url, and in fact, remove index.php in url.
But it worked just in root! When I type www.domain.com/cotroller/method, it worked, but www.admin.domain.com/controller/method, not worked! It shows 500 internal server error. when I put index.php (www.admin.domain.com/index.php/controller/method), it worked. first I was resolve this, and then...
2. I want to just access application via subdomains. I don't want this work: www.domain.com/admin/cotroller/method or www.domain.com/user/cotroller/method, just via subdomains, like this: www.admin.domain.com/controller/method.
Thanks for attention, and sorry for heavy text...
any help?