if we say:
$termstringDomain1 = "something";
$url = "somethingelse";
$url = 'http://' . $termstringDomain1 . '/' . $url;
the result if gives me is: http:///somethingelse instead of http://something/somethingelse
so basically it is ignoring $termstringDomain1
Any idea why?
I am unable to reproduce this issue:
Your problem is likely elsewhere. If I copy/paste what you provided, I get the following:
Check your variable casing.
$domain1is not the same as$Domain1.