finally.  permalinks working nicely for apache and nginx