---
title: "Edit .htaccess and Nginx rules safely (Pro) — Zinn® SEO"
description: "Change your server rules with a syntax check, a backup of every version and an automatic undo if the site stops answering."
url: "https://zinnseo.com/kb/edit-htaccess-and-nginx-rules-safely"
lang: "en"
dir: "ltr"
---

# Edit.htaccess and Nginx rules safely (Pro)

Change your server rules with a syntax check, a backup of every version and an automatic undo if the site stops answering.

1. ## Open Server rules

   Go to SEO, Tools, Server rules (.htaccess). You see the rules file your server reads.

   ![Open Server rules](https://zinnseo.com/shots/en/guides/serverrules-1.webp)
2. ## Edit and check

   Change the rules and press Check the rules. Mistakes are listed by line before anything is saved.

   ![Edit and check](https://zinnseo.com/shots/en/guides/serverrules-2.webp)
3. ## Save the rules

   Every save keeps a backup. If your home page, login or admin stop answering after the change, the previous rules go back by themselves.

   ![Save the rules](https://zinnseo.com/shots/en/guides/serverrules-3.webp)
4. ## Put a backup back

   Under Backups, choose a backup and press Put this backup back.

   ![Put a backup back](https://zinnseo.com/shots/en/guides/serverrules-4.webp)

Next guide: [Keep internal links working when an address changes](https://zinnseo.com/kb/keep-internal-links-working-when-addresses-change)
