Word press site was working only in default permalink settings. After modifying it to month and name, page not found error occurred WordPress Permalinks not working : error