Configuration Changes
Because Kinsta uses the newer Nginx web server instead of Apache, WordPress sites hosted at Kinsta do not have a .htaccess file. Instead, you can use tools in MyKinsta to replicate much of the important .htaccess functionality like redirects and IP bans.
For other rules, Nginx also offers its own configuration file where similar rules can be set up, though the syntax is different. Our Support team can help you add additional rules as needed to this Nginx configuration file (the equivalent of Apache’s .htaccess file).
Set Up Redirects
To create redirects for your site hosted at Kinsta, you can use the Redirects tool in MyKinsta:
![Add a redirect rule in MyKinsta.](https://kinsta.com/wp-content/uploads/2023/11/wordpress-redirects-1024x735.png)
Block Specific IP Addresses
To stop specific IP addresses from accessing your site at Kinsta, you can use the IP Deny tool in MyKinsta.
![Add an IP address to deny in MyKinsta.](https://kinsta.com/_next/image/?url=https%3A%2F%2Fkinsta.com%2Fwp-content%2Fuploads%2F2023%2F11%2Fwordpress-IP-deny-3.png&w=3840&q=75)
Password Protect Your Site
To lock down your entire site, you can use our password protection (htpasswd) tool in MyKinsta. You can find it under the Tools section on your site. Click Enable, choose a username and password, and you’re good to go!
![Enable .htpasswd protection.](https://kinsta.com/_next/image/?url=https%3A%2F%2Fkinsta.com%2Fwp-content%2Fuploads%2F2023%2F11%2Fwordpress-password-protection-3.png&w=3840&q=75)
After it’s enabled, your WordPress site will then require authentication to access it. You can change the credentials at any time or disable it when you no longer need it.
![Password protection requires signing in before viewing the site in your browser.](https://kinsta.com/_next/image/?url=https%3A%2F%2Fkinsta.com%2Fwp-content%2Fuploads%2F2021%2F11%2Fhtpasswd-authentication-prompt.png&w=3840&q=75)
Other Rules? Contact Our Support Team
Using the Nginx configuration file, it’s also possible to add other configuration rules – like password protecting a folder at the server level or disabling image hotlinking.
By default, you cannot edit the Nginx configuration file yourself at Kinsta. However, if you reach out to our Support team, they’ll be happy to help you and add the relevant rule for you. Note: They cannot convert .htaccess to Nginx rules for you.