title: Codeigniter Wildcard Subdomain
body: <p>How can I make a wildcard subdomain with codeigniter? I have try anything on google and this site. But it wont work, if not 500 error page it will return nothing (I mean no effect) because I got this on my .htaccess before :</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* index.php/$0 [PT,L]  
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I think it always conflict with that one above, btw what I desired to be is :</p>
  
  <pre><code>example.com/page =&gt; example.com/page (without subdomain will just be normal, with no www and no index.php)
  abc.example.com =&gt; example.com/abc-channel
  exc.example.com =&gt; example.com/exc-channel
  abc.example.com/my/foo/page =&gt; example.com/abc-channel/my/foo/page
  </code></pre>
  
  <p>All will generated with no redirect.</p>