I got your PM saying the formula didn't work for all the websites and had a look at the file you provided, but unfortunately you didn't note which endings it doesn't work for. Is the problem with the ones which have a slash as well (.com/ instead of .com) or other ones? I understand that you don't want to give too many details, but if you could just give an indication of which endings aren't working, we can try to fix the formula or give you a better solution.