In this paper novel method is proposed to generate optimal ranking based on clustered query sessions using hybridisation of ant colony optimisation (ACO) and genetic algorithm (GA) for effective information retrieval. The advantage of using ACO with GA for web page ranking is that both complement each other in optimisation and overcome local minima problem therefore it generates the optimal ranking of clicked URLs. The optimal ranking of web pages (clicked URLs) when used for recommendations retrieve more and more relevant documents up in ranking and improve the precision of search results. The recommendation of optimal ranking of clicked URLs continues during web search for effective personalisation of user search goal. Experiment was conducted on the data set captured in three domains and results were analysed statistically to confirm the improvement of precision of search results using the proposed method.