CodeIgniter Forums
Create subdomain with dynamic title in existing domain name - 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: Create subdomain with dynamic title in existing domain name (/showthread.php?tid=49730)



Create subdomain with dynamic title in existing domain name - El Forum - 03-01-2012

[eluser]Was[/eluser]
i want to create url something like http://www.something.mysitename.com . here http://www.mysitename.com is the main domain name and something is dynamic,so how should we can do this ? some one guide me.

thanks
Was


Create subdomain with dynamic title in existing domain name - El Forum - 03-01-2012

[eluser]LiquidFusi0n[/eluser]
Erm. I don't think this is a Codeigniter question to be fair.

Sub-domains are set up in your web server of choice and DNS not Codeigniter, although I'm sure there is a way to achieve changing it with CI, if that is what you want?

--LiquidFusi0n


Create subdomain with dynamic title in existing domain name - El Forum - 03-01-2012

[eluser]Was[/eluser]
First thanks LiquidFusi0n, yes,can u please explain me how to do this in CI like http://www.something.mysitename.com




Create subdomain with dynamic title in existing domain name - El Forum - 03-01-2012

[eluser]Mauricio de Abreu Antunes[/eluser]
"Sub-domains are set up in your web server of choice and DNS not Codeigniter, although I’m sure there is a way to achieve changing it with CI, if that is what you want?"



Create subdomain with dynamic title in existing domain name - El Forum - 03-01-2012

[eluser]PhilTem[/eluser]
You have to configure your vhost/apache/httpd to forward all calls for pages to something.example.com to e.g. example.com/page/something. From there on you only need a controller page that takes care of the rest. But the main part is to configure your webserver appropriately. Google for something like "dynamic subdomains". I know there is a tutorial on net.tutsplus.com that covers this topic but not for codeigniter yet for some other webapp (forgotten the name).
But hey: Just be creative with your google search queries Wink


Create subdomain with dynamic title in existing domain name - El Forum - 03-01-2012

[eluser]Was[/eluser]
thanx guys Smile