The .htaccess file is used primarily for creating pretty permalinks. By default WordPress permalinks set to /?p=9 but this not look good for SEO and browse url. For this, we need to some settings. Lets I will explain to you how you can create to the pretty permalinks in WordPress and override .htaccess.
Simply login into WordPress.
After logging into WordPress go to Settings ->Permalinks and this page display page pretty URL Settings. For enable the pretty permalink just click on “Custom Permalink” Radio button and click on save changes button.
Write Permission to .htaccesss: If .htaccess file is not writable so copy the code and paste to .htaccess file. If you have given write permission to htaccess, so no need copy and paste the code in the htaccess file.
Migration site: If you have moved WordPress to live or any another host. But when you browse any pages link you will get 500 internal error or 404 page not found error because of htaccess, so you need to update .htaccess file. Just go to Dashboard -> Permalinks and click save button. That’s it. Now you can browse any pages on a live site its work