flatten permalinks