Go to cPanel / Cyberpanel then find File Manager > public_html > WordPress directory > find .htaccess.
Then just paste this code then save changes. 404 will fix
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress