RewriteCond %{HTTP_HOST} !root.com [NC] RewriteRule .* index.php/clients/%{HTTP_HOST} [L]and have all client site requests go through one controller? Or should I have every controller detect the http_host and decide what to load. Eg, if the uri is /about, root.com will probably have an about page, but client sites will most likely also have an about page. Deciding if the client's domain is an active account or not could be done with a DB lookup, or there could be a RewriteMap file with domain > client_id mappings. I'm assuming the map file would be faster here but I've never actually tested that. I'm sure there are other options and I'd love to hear them.
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{HTTP_HOST} !^root.com$ [NC] RewriteCond %{HTTP_HOST} !^www.root.com$ [NC] RewriteRule .* index.php/site/index/$0 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* index.php/$1 [L]So anything from a client domain automatically gets sent to the Site controller's index action. I'm guessing I could just use HMCV to access other controller from here. Is this too messy? Anyone see a better way?
It looks like you're new here. If you want to get involved, click one of these buttons!