If you deleted your .htaccess file (or lost it somehow) here is how you can restore the default one:
- Create a new blank
.htaccess
file in your WordPress directory via FTP or SSH. - Change permissions to 777. Log-in to your dashboard. Navigate to settings, permalinks, and update permalinks (choose any option there). When done, change the
.htaccess
permissions back to 644.