If you deleted your .htaccess file (or lost it somehow) here is how you can restore the default one:
- Create a new blank
.htaccessfile 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
.htaccesspermissions back to 644.