Skip to content

.htaccess writer, analyzer and Redirect Tester

Write any .htaccess rule by answering a few questions, then check the whole file: every line explained, mistakes found and a corrected file.

  • Free, no sign-up
  • Runs in your browser
  • Redirect tester included

Used to write redirects that reach the final address in one step, and to test them.

Write a rule

Pick what you want your .htaccess to do and answer its questions. You get the exact lines, and β€œAdd to my file” puts them in the right place in your file below, then checks and tests it.

.htaccess can’t be fetched from outside, because servers never show it. Open it in your host’s File Manager (public_html, then .htaccess; turn on β€œshow hidden files”) or via FTP, and paste it here. It is checked in your browser and never sent anywhere.

Explains every rule, finds redirect chains and loops, HTTPS and www mistakes and rules that cause 500 errors.

Free on this page, or in the free app

On this pageIn the RR SEO Tools app
Use the toolFree, no sign-upFree account (just your email)
Full reportsA preview, then the full report when you sign in freeAlways shown in full
Check pages by URL10 free a day with an accountThe same free allowance
Your reportsShown on this pageSaved to your account to reopen and compare
Phone and computerWorks in any browserInstall it like an app
Every toolOne tool per pageAll tools, one sign-in and one history

Open this tool in the app Free. Sign in with just your email.

The file that can take your whole site down

.htaccess is a small settings file that Apache and LiteSpeed servers read on every request. It handles redirects, HTTPS, www, caching, compression, security headers and access rules. A single typo can show "500 Internal Server Error" on every page. It's also where most redirect chains and broken redirects after a redesign come from.

What the tool does

  • Writes rules for you: pick one of 35 jobs (redirects, https and www, clean addresses, noindex, blocking, passwords, maintenance, caching, error pages, PHP settings), answer its questions, and the lines go into the right place in your file.

What the analyzer does

  • Explains every line in plain words: what each RewriteCond, RewriteRule, Redirect and Header actually does.
  • Finds the classic mistakes: unclosed blocks (500 errors), RewriteRule patterns starting with "^/" that never match in .htaccess, temporary 302s that should be 301s, redirects placed below the WordPress block where they never run, php_value lines that break on PHP-FPM and error pages that create soft 404s.
  • Tests redirects: follows any address through your file one step at a time, the way Apache does (mod_rewrite before Redirect lines), so you can see chains, loops and the line that fired. The four versions of your home page (http or https, with or without www) are tested automatically.
  • Gives you a corrected file and ready-made snippets: HTTPS and www in one redirect, security headers, caching, compression and protection for sensitive files.

Your file is checked in your browser and never sent to us, because .htaccess can contain private details.

How to use this tool

  1. 1
    Copy your .htaccess

    In your host's File Manager, open public_html and then .htaccess (turn on "show hidden files"), or download it by FTP. Keep a backup copy.

  2. 2
    Paste it and add your domain

    The domain lets the tester check every version of your home page.

  3. 3
    Fix the red points first

    Those break the site or stop redirects from working. The corrected file has the safe fixes in it.

  4. 4
    Upload and test

    Upload the new file, load your site right away and run the tester again. If you see a 500 error, restore the backup.

Frequently asked questions

Why can't you fetch my .htaccess?

Servers never send it to browsers, on purpose, because it can contain private paths and passwords. Paste it instead.

Does this work on Nginx?

No. Nginx ignores .htaccess completely; its rules live in the server configuration.

Is a 301 or a 302 better for SEO?

Use a 301 for permanent moves, so Google passes the old page's signals to the new address. Use a 302 only for short, temporary changes.

How accurate is the redirect tester?

It follows Apache's own order and supports the common conditions (HTTPS, host, path, query string, files and folders). Always confirm on the live site afterward, because server settings outside .htaccess can add their own redirects.

Is it free?

Yes.

Get help beyond the tool

Get help moving or restructuring a site

We map every old address to its new home, write and test the redirects and monitor rankings through the move.

See site migration SEO