CodeIgniter Forums
"Subdomain using .httaccess" - 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: "Subdomain using .httaccess" (/showthread.php?tid=5455)



"Subdomain using .httaccess" - El Forum - 01-22-2008

[eluser]Unknown[/eluser]
I want create sub domain using .httaccess like

www.domain.com/controller/function/abc into www.abc.domain.com

If any body knows how this is done please help me.


"Subdomain using .httaccess" - El Forum - 01-22-2008

[eluser]tonanbarbarian[/eluser]
are you wanting htaccess to redirect to the subdomain if someone enters the first url?
why not just code it
since your path shows controller and function(method) simple code the controller and method to accept the submain parameter and call a redirect


"Subdomain using .httaccess" - El Forum - 01-23-2008

[eluser]Unknown[/eluser]
I want to show my variable abc berfore my domain name like www.abc.domain.com


"Subdomain using .httaccess" - El Forum - 01-23-2008

[eluser]dawnerd[/eluser]
Does your domain/webhost allow wildcards?

I know this is possible because there are a few sites that do this.

http://www.easymodrewrite.com/example-subdomains
That might be helpful.