Yesterday I asked here how can I upload the whole installation to a server and I changed "localhost" to "website.com" locally and after that I changed it back to "localhost" but now I try to see a post locally and it send me to xamp dashboard. How can I fix it?
Have you double checked your wp-config.php file to make sure it's pointing to the correct database?
Also if your site was previously locally hosted and now it's live also make sure that the siteurl and home URL's are correct in the database for the live site under the 'wp_options' table.
Edit: If you can access the admin try going to Settings > Permalinks and clicking the save button to refresh your .htaccess file incase things got messed up there.