Fix for Non-default permalinks

Non-default permalinks returned 404 with these lines being commented out.