How to add multi-domain support in CodeIgniter?

I need the support of city1.example.com , city2.example.com , city3.example.com in CodeIgniter.

Unfortunately, $config['base_url']config.php strictly sets the base URL.

What is the best way to learn the structure to support different subdomains?

+3
source share
1 answer

You should probably just look for Codeigniter.com the next time, as all of this is on the wiki:

https://github.com/EllisLab/CodeIgniter/wiki/Automatic-base-url

+2
source

Source: https://habr.com/ru/post/1786999/


All Articles