You can simply create .htaccess by going to your Control Panel -> File Manager and right-clicking on a blank area in it. Select New File option.
After that, enter the name
.htaccess and press Create to save it. You will then be able to access your newly created file and manage the code.