Tools
All toolsRedirect Rule Generator
SEO tool

Send old addresses to their new home with 301 redirects

Change a page address without a redirect and its visitors and rankings hit a dead end. List your old and new addresses here and the correct server rules are written for you.

Write my redirects Free. No sign in. Nothing you type leaves your browser.

Redirect rule generator

One redirect per line: the old address, a space, then the new address.

What it does

Three kinds of redirect in one place

Page to page

Paste a list of old and new addresses. Each becomes one clean redirect line.

Force HTTPS

A tick adds the rule that moves every visitor from the insecure version of your site to the secure one.

www or no www

Pick one form and the rule sends the other to it, so your site lives at a single address.

Benefits

What redirects protect

Every address on your site has history: links from other sites, bookmarks, rankings. A redirect carries that history to the new page.

1

Rankings move with the page

A 301 tells Google the move is permanent, so the old page passes its standing to the new one.

2

Visitors never see an error

Old links and bookmarks keep working.

3

No duplicate versions

Forcing one form of your domain stops the same page being indexed under four different addresses.

4

No syntax slips

A stray character in this file can take a whole site down. Generated rules avoid that.

Step by step

How to use it

1

List your redirects

Old address first, new address second, one pair per line.

2

Tick any extras

HTTPS and your preferred www form.

3

Copy the rules

Press the copy button.

4

Paste into .htaccess

Open the file in the top folder of your site and paste the rules at the very top. Keep a copy of the old file first.

A few tips

Redirecting without regrets

Redirects are powerful, which means mistakes show up fast. A little care goes a long way.

Good to know

Before you paste

Works on Apache and LiteSpeed

These rules are for servers that read .htaccess files. Nginx uses a different format.

WordPress users have another option

A redirect plugin, or the redirect feature in Rank Math, does the same job without editing files.

301 means permanent

Browsers remember it. Use it only when the move is final.

Help

Questions people ask

What is a 301 redirect?

It is a permanent forward from one web address to another. Visitors and search engines are sent to the new address automatically.

Where is the .htaccess file?

In the top folder of your website, usually called public_html. It may be hidden, so switch on hidden files in your file manager.

Do 301 redirects hurt SEO?

No. They are the recommended way to move a page and keep its rankings.

How long should I keep a redirect?

At least a year, and ideally for as long as you own the domain.

Changing page addresses?

Write the redirects first so nothing gets lost.