Below, you can find the default htaccess rules for a WordPress website.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
If you have a valid SSL Certificate installed you can also force your site to use HTTPS via .htaccess rules. The rule set below would need to be added to the very top of your .htaccess file in addition to the rules listed above in this guide.
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

If you have any web hosting questions please feel free to reach out to us. We're happy to help.