Skip to content

Instantly share code, notes, and snippets.

View hadimajidi's full-sized avatar

hadicodes hadimajidi

View GitHub Profile
@chill117
chill117 / HostNameRouter.php
Last active April 20, 2024 14:10
Manage multiple hostnames (domains, sub-domains) within a single instance of CodeIgniter.
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
Manage multiple hostnames (domains, sub-domains) within a single instance of CodeIgniter.
Example:
If you had the following domain/sub-domain style for your site:
your-domain.com