typo and trailing slash removal

Duplicated TLD and trailing slash removal because the variable is used here: @{url}/bg.png so the url var should be: http://example.com instead of http://example.com.com/