CraftTools

.htaccess Generator

Guide: How to Write a robots.txt File (With Examples)

Redirects

Works on Apache servers. Back up your old .htaccess first, because a mistake can take a site offline.

Nothing you enter or choose here leaves your device. This tool runs in your browser.

How to use

  1. 1Tick the options you want.
  2. 2Add any redirects or blocked IP addresses.
  3. 3Copy the file into your site's root folder.

Frequently asked questions

Which servers does it work on?

Apache. Nginx and most hosting panels use a different format.

Is it safe to use?

Back up your old file first. A mistake in .htaccess can take a site offline.

What is the difference between 301 and 302?

301 is permanent and passes search ranking. 302 is temporary.

Can I force HTTPS?

Yes. Tick the first option.

Is my data uploaded?

No. Everything runs in your browser, so what you paste never leaves your device.

Read the guide

Learn how this works and how to get the most from it.

Web & SEO

How to Write a robots.txt File (With Examples)

What robots.txt does and doesn't do, how Disallow and Allow rules work, how to add your sitemap, and mistakes that can hide your whole site.

1 min read

Robots.txt Generator

Build a robots.txt with rules for each crawler.

Meta Tag Generator

Generate SEO, Open Graph and Twitter Card meta tags with live previews.

HTTP Status Codes

Look up every HTTP status code, from 200 OK to 503 Service Unavailable.

URL Parser & Query Builder

Split a URL into its parts and edit its query parameters.