If you have your WordPress in a subdirectory, such as yoursite.com/wp or yoursite.com/wordpress, you will have to visit that address every time you want to visit your site.
Open or create the file index.php in the root directory, not the one in the “wp” folder.
In it, paste the following code; nothing else:
<?php define('WP_USE_THEMES', true); require('./wp/wp-blog-header.php'); ?>
If your WordPress folder is not called “wp”, change that part accordingly.
Go to your WordPress dashboard and log in. Go to Settings, General.
Change Blog Address (URL) to your website URL. This is all you need to change. Do not change anything else.
Click “Save Changes”. When you visit yoursite.com you should now see your blog and posts.