updating for permalinks and redirects