Setup links for pagination pages
The configuration is in Drupal itself. Just visit /admin/config/search/clean-urls and enable it :



Note : It needs to be enabled in Apache as well. In Apache rewrite module should be enabled.