Where’s my .htaccess file?
The .htaccess file should be in the root directory of your WordPress install, where the other WordPress files are located. Since the name of the file begins with a “.”, the file may not be visible through an FTP client unless you change the preferences of the FTP tool to show all files, including the hidden files.
If you do not already have a .htaccess file, create one. If you have shell, or ssh access to the server, a simple touch .htaccess will create the file. If you are using FTP, create a file on your local computer, call it 1.htaccess, upload it to the root of your WordPress install, and then rename it to .htaccess. Now read the following section to see how you can edit the file.