The present invention relates to new substituted imidazole compounds and pharmaceutically acceptable salts, esters or prodrugs thereof, compositions of the derivatives together with pharmaceutically acceptable carriers, and uses of the compounds. The compounds of the invention have the following general formula: