My wordpress is not using the page template for the pages, and it is just displaying the index page whenever I try to access any page. To troubleshoot the issue, I tried to use a custom template also for one of the page(My url was http://localhost/wordpress/contact and the custom template I have added was page-contact.php). However even this was not working. The theme I am using is twenty eleven.
thank you for the help.