Change route for pages and posts. Only XML items need an extension.