How to reach it?
What to keep in mind?
It is a holy town, so smoking, alcohol and any kind of meat (even chicken etc.) is forbidden. Restaurants do not offer alcohol or meat for that reason. Apart from that, just the usal things like dressing appropriately when visiting the ruins (a lot of them are temples).
Some extra information:
Hampi was the capital of Vijayanagar, the last big Hindi Empire and is a UNESCO World Heritage Sight since 1986. Because it is situated at the riverside (Tungabhadra River) there can be a lot of mosquitos, which CAN transmit Malaria so be sure to protect yourself.
Definetly bring a hat, sunglasses and sunscreen! The sun is very strong and temperatures of 40°C are nothing special.
How long to stay?
I recommend at least 3 days, more if possible. The ruins are distributed over 26 m², so you will definetly need more than one day. You can do a tour, or rent a scooter but I recommend walking or renting bisicles because that way you can enjoy the beautiful scenery a lot better. (just my opinion of course!)
What about you? Ever been to India? Are you planning a trip to India?