WordPress wp-admin CSS has broken and shows 404 on all pages [Fixed]

Problem: One day after login the WordPress website I saw the dashboard is unstyled, sitting in the top left corner. all the CSS styles are gone. When I click any wp-admin link like Post, Pages, Appearance, Plugins, etc I get a 404 error page. So I was unable to change anything from WordPress dashboard. Although…