support wordpress permalinks and close #7