The problem may be related to the Permalinks structure chosen in your Dashboard. Please ensure that you have selected ‘Post name’ under Permalink settings by navigating to Admin Dashboard > Settings > Permalinks. You can refer to this screenshot for guidance:
Note: If you have already chosen ‘Post name’ under Permalink structure, kindly click on the ‘Save Changes’ button and confirm if the issue persists.