Free · No sign-up · Runs in your browser

Htaccess Redirect Generator

Generate Apache .htaccess redirect rules for HTTPS, host canonicalization and path redirects.

STEP 1

Start with your input

Edit the example or replace it with your own text.

How to use Htaccess Redirect Generator

  1. Enter the information requested for htaccess redirect generator.
  2. Review inputs and units, then run the tool.
  3. Check the result and copy or download it for your workflow.

How Htaccess Redirect Generator works

Generate Apache .htaccess redirect rules for HTTPS, host canonicalization and path redirects. Results are based only on the inputs you provide. This tool does not access or verify private account, search ranking or analytics data.

Use the result carefully

Check output against the source data and destination platform requirements. Estimates and previews are not official measurements or professional advice. For regulated, financial, health or safety decisions, confirm assumptions with an appropriate qualified source.

Example input

Choose HTTPS and www preference

How do I use the htaccess redirect generator?

Enter the relevant inputs and select Run. Generate Apache .htaccess redirect rules for HTTPS, host canonicalization and path redirects.

Is input uploaded?

Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.

Related tools and guides

Browse all developer tools