[eluser]phusiondesign[/eluser]
So, here is my quandary. I have been using CI for awhile now and enjoy it very much. However, I now have a new goal and want to consolidate sites down under one domain.
I have
mydomain.com,
two.com, and
three.com. I want to redirect
two.com to
two.mydomain.com and
three.com to
three.mydomain.com. I can accomplish this fine within my registrar.
Each of these sub-domains will have their own respective folder;
two.mydomain.com will be located at
mydomain.com/two and accordingly.
My problem lies around how I configure CI to operate separate instances of CI on one domain.
I would like to be able to drop a currently working directory tree into a sub-domain's folder and have it work, but it seems I am having issues... not sure what they are coming from either.
It might be my .htaccess, I am currently using...
Code:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|public|robots\.txt)
RewriteRule ^(.*)$ /index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
I would appreciate any help to get this up and running. Thanks!