mod rewrite subdomain url - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: mod rewrite subdomain url (/showthread.php?tid=43070) |
mod rewrite subdomain url - El Forum - 06-29-2011 [eluser]weblizzer[/eluser] Hello guys! I just try to work a site now.. which I want the countries as subdomain. I already set up the DNS and Server Alias on the server. Just to see if I got it write. 1. When I type us.mydomain.com is same as mydomain.com Is this correct? 2. I want Code: mydomain.com/countries/us Code: us.mydomain.com Here is the htaccess that I put into it: Code: RewriteCond %{HTTP_HOST} !^www. [NC] Though after typing the us.mydomain.com/ it redirects me to https://www.mydomain.com/countries/ but I want the subdomain shows up only. Did I miss anything in this? Thanks |