sql dump, htaccess, and permalinks