We apply the Model View Control (MVC) design-pattern.
Strict XHTML code is generated for SEO compliancy. Then Javascript (with jQuery) will be used to provide animations and AJAX features.
We need a wildcard for each server IP and also a static DNS to identify each site: the servers will have to communicate to share data.
*.mx.1000mois.com IN A XXX.XXX.XXX.XXX *.mx.1000mois.com IN A YYY.YYY.YYY.YYY server1.1000mois.com IN A XXX.XXX.XXX.XXX server2.mx.1000mois.com IN A YYY.YYY.YYY.YYY
./index.php ./bali-conf.php ./data/ ./src/ ./src/index.php ./src/bali.php
To provide maximum control, BALI will use the RewriteRule Module of Apache.
To allow easy integration with existing websites and other applications, we will only redirect to BALI the non-existing URL.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php [L]
</IfModule>
Note: That means BALI will have to handle efficiently to non-existing URI (error 404 and so on…)