CodeIgniter Forums
Codeigniter and urls like subdomain.website.com - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Codeigniter and urls like subdomain.website.com (/showthread.php?tid=65629)



Codeigniter and urls like subdomain.website.com - chocovo - 07-03-2016

Hello,

I am trying to get codeigniter working with urls like:
  • website.com
  • subdomain1.website.com
  • subdomain2.website.com
  • ...

But no success  Confused .

Then my question is:
Is it possible to have it working without having to add all subdomains in CPANEL?

Thanks for your help.


RE: Codeigniter and urls like subdomain.website.com - JayAdra - 07-03-2016

You can set up a vhosts entry for *.website.com and point it to the same place as website.com. This will send all subdomain requests to the same place.

http://stackoverflow.com/questions/758351/virtualhost-for-wildcard-subdomain-and-static-subdomain


RE: Codeigniter and urls like subdomain.website.com - Aloghli - 07-03-2016

hello there. yuo can set appliaction folder in index.php that will work