Can someone let me know how do i have mod_rewrite focusing on subdomain? The htaccess code here http://codeigniter.com/user_guide/general/urls.html is just focusing on normal folders, not subdomains.
Can you explain that and just how can one have it working?
I have had this issue too. On certain hosts, this works:
RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ index.php/$1 [L]
Observe that I merely removed the slash from while watching index.php online 3.
Another option would be to include RewriteBase towards the block, as a result:
RewriteEngine on RewriteBase /path/to/app RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L]
Finally, when you get 500 errors from all of these, you might do this technique, which creates most servers I have attempted: http://codeigniter.com/wiki/Dreamhost_.htaccess/