changing urls in pagination within post pages