【发布时间】:2011-06-13 08:59:15
【问题描述】:
我需要 CodeIgniter 中的 city1.example.com、city2.example.com、city3.example.com 支持。
不幸的是,config.php 中的$config['base_url'] 严格设置了基本 URL。
学习支持不同子域的框架的最佳方法是什么?
【问题讨论】:
标签: php apache codeigniter frameworks url-rewriting
我需要 CodeIgniter 中的 city1.example.com、city2.example.com、city3.example.com 支持。
不幸的是,config.php 中的$config['base_url'] 严格设置了基本 URL。
学习支持不同子域的框架的最佳方法是什么?
【问题讨论】:
标签: php apache codeigniter frameworks url-rewriting
下次您可能应该只搜索 Codeigniter.com,因为它都在 wiki 中:
https://github.com/EllisLab/CodeIgniter/wiki/Automatic-base-url
【讨论】: