CodeIgniter Forums
Subdomain configuration? - Printable Version

+- CodeIgniter Forums (
+-- Forum: Using CodeIgniter (
+--- Forum: Installation & Setup (
+--- Thread: Subdomain configuration? (/showthread.php?tid=78318)

Subdomain configuration? - EzraCaleb - 01-02-2021

Hi all

Appreciate this has been covered a few times here and there, but I've tried several solutions and nothing seems to be working for me - so any guidance would be really appreciated!

I'm trying to keep things somewhat easy to maintain for myself with shared config and models etc. I have several parts to my CodeIgniter setup which would be accessed through a subdomain, but internally would just be a controller folder. For example:
  • -->

  • -->

  • -->

  • --> vshare

Each of these subdomains are fixed (it's not a wildcard subdomain), but the only way I've figured out how to do this with CodeIgniter is point them all at the same directory and basically route based on htaccess rewrites to the index.php file, seems they're all controller folders (routes also plays a part in this) - although I'm very much open to better suggestions.