#1051
#1051

Removed amp from inside amp

exclude the pagination
if there is page is added than, current code will remove the amp

 1. if there is amp in current URL
 2. if page is not found in current url

nicholasgriffintn/Accelerated-Mobile-Pages,ahmedkaludi/Accelerated-Mobile-Pages,nicholasgriffintn/Accelerated-Mobile-Pages,ahmedkaludi/Accelerated-Mobile-Pages