Sorry to jump right in here, but has anyone tried hard coding all HREF and IMG tags in the smarty template for the second domain?
For example, I wrote a bash script to go through the smarty template for my DOMAIN2.com , where DOMAIN1.com is my main site :
Code:
#!/bin/sh
for file in $(grep -il "img src\=\|.php" *.tpl)
do
echo "doing $file .. ."
sed -i 's/img src\=\"/img src\=\"http:\/\/domain2.com\//g' $file
done
Replace "img src" with "a href" in the same script and you can easily replace all IMG and HREF references in the smarty template for domain2.com with hard coded links. This strategy coupled with the rewrite rules mentioned earlier, such as the following (I added an extra rule to avoid 301 looping) :
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} domain2\.com$
RewriteCond %{QUERY_STRING} !^systpl=domain2template
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}?systpl=domain2template [R=301,L]
Separate branded support can be handled by the following actions :
- separate support department with domain2.com
- modifying the email templates to have the if-statements check which support department before displaying any domain or company name specific language (check the whmcs wiki for email template howto's)
- Email autoresponders use the ${companyname} variable, unfortunately. I find that if you just enter a blank space for this in the WHMCS general settings, and hard code all tags that have ${companyname} in the templates for domain1.com and domain2.com , it will have minimal impact. Then name each support department with the full company name associated with each department and each autoresponder email will be 100% unique.
Separate products might be a problem, but you could just have all your products hidden in whmcs and just have static selling pages that hard link to each respective product. It might not be ideal for everybody, but it would keep things 100% separate. Perhaps someone has a better suggestion for that.
There are many things you could do to go even further, but I thought my experience would help others. I hope this helps!