.htacess not working on localhost

AK,

Very quickly, you must enable mod_rewrite on your test server. Then, if NOT localhost, try to match everything (except the dot character) with or without a trailing slash and redirect to profile?

Please have a thorough read of the mod_rewrite tutorial at http://dk.co.nz/seo for setup directions and learning how to write effective mod_rewrite code (with many real world examples).

Regards,

DK.