How to add htaccess file on WordPress?
There may be a time when you need to add a .htaccess file to your WordPress website. This could because you have renamed or deleted the old file to fix an error such as the 500 Internal Server Error or because there was no .htaccess file on the installation of your WordPress website.
Luckily this is very easy to add and can be done in just a few clicks from your WordPress admin area. Simply follow these steps:
- Log in to your WordPress admin area.
- Find Settings from the left-hand menu and select Permalinks.
- From here you simply need to click Save.
You can change the permalinks settings if you need to but in order to create the .htaccess file, this is not necessary.
After saving the permalinks you will be able to view the file in File Manager on cPanel or FTP under your website folder or directory.