Run multi-website with TomatoCMS

From TomatoCMS Documentation

Jump to: navigation, search

Have you ever tried to run multi-website with the same code? If, not yet, let's try with TomatoCMS.
This guide will introduce you to run multi-website with the same code use TomatoCMS.
All of default requests, TomatoCMS will use config/app.ini file to config for current site.

app
	|__config
		|__app.ini

For example, You will run two website with following url:
- First website: http://domain_1/index.php
- Second website: http://domain_2/index.php

You will have to create two file in config folder with following name:
- domain_1.ini: contain the information of first website.
- domain_2.ini: contain the information of second website.

app
	|__config
		|__domain_1.ini
		|__domain_2.ini

You can config two or more website with the same code, use the same database or differently one. Goodluck to you.

Personal tools