CodeIgniter Forums
running subdomain problem - 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: running subdomain problem (/showthread.php?tid=53938)



running subdomain problem - El Forum - 08-15-2012

[eluser]Bigil Michael[/eluser]
Is it possible to run the code from main domain while url is calling subdomain.

that is the url is like this abc.domain.com or cds.domain.com
but it must run the code from root directory....

Is it possible?????
Any suggestions or answer please????????


running subdomain problem - El Forum - 08-15-2012

[eluser]Bigil Michael[/eluser]
help???


running subdomain problem - El Forum - 08-15-2012

[eluser]Aken[/eluser]
This is something you'd set up using DNS or .htaccess. Contact your web host for more info on how to do this, because it can vary depending on how they set things up.


running subdomain problem - El Forum - 08-16-2012

[eluser]Bigil Michael[/eluser]
can u post the .htaccess code to do this???


running subdomain problem - El Forum - 08-16-2012

[eluser]Aken[/eluser]
[quote author="Aken" date="1345096777"]This is something you'd set up using DNS or .htaccess. Contact your web host for more info on how to do this, because it can vary depending on how they set things up.[/quote]


running subdomain problem - El Forum - 08-16-2012

[eluser]wiredesignz[/eluser]
@Aken, you're being a penis again. Stop it.


running subdomain problem - El Forum - 08-16-2012

[eluser]Bigil Michael[/eluser]
thanks for your replay

my problem solved by following these links.
Code:
http://phpcreating.blogspot.in/2010/07/create-dynamic-subdomain-using-mod.html
http://www.mediacollege.com/internet/server/apache/mod-rewrite/subdomains.html




running subdomain problem - El Forum - 08-17-2012

[eluser]Bigil Michael[/eluser]
one more problem.
When I change the url the session will become empty.
I want to keep the session up to the end because customer login is already implemented.
can anyone help me????

thanks in advance.