Preferred htaccess file language

This is where you would put domain redirects if need be. So you may need to personalize it but here’s the base from which to start. Just copy below and paste it into your htaccess file.

# BEGIN WordPress

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ – [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

# Turn off index browsing so directories with no index files will not display the list of files

Options -Indexes

# Deny browser access to these files – these should always be denied to the public

# wp-config.php, wp-config-sample.php, bb-config.php, php.ini, php5.ini, readme.html, license.txt

Order allow,deny

Deny from all

# Turn off server signature information from hackers

ServerSignature Off

# Deny browser access to protected server files – .htaccess, .htpasswd and all file names starting with dot

RedirectMatch 403 /\..*$