I think yo ucan use 
```
l($domain,  $absolute=TRUE);   // instead of adding yourself 'http://'
```