You can get to Hampi Town by train: the nearest railway station is Hospet Junction, 13 km away. From there, you can take a taxi to the town.
City of Rishikesh
Rishikesh is easily accessible by train or bus from major Indian cities, with the nearest airport being Jolly Grant Airport