301 Redirect Generator

Make the line your web server needs to send visitors from an old page to a new one with a permanent 301 redirect. Nothing is sent anywhere.

1 Fill in the boxes

2 Your answer

Your answer shows here as you type.

How to use the 301 Redirect Generator

  1. Type the old page address, starting with a slash.
  2. Type the new page address.
  3. Copy the line for your server into its config file.

Frequently asked questions

What is a 301 redirect?

It tells browsers and search engines that a page has moved for good, so visitors and search engines go to the new address.

Where do I put the line?

On an Apache site, put the Redirect line in the .htaccess file. On an Nginx site, put the rewrite line in the server block of the site config.

Can the new address be a full web address?

Yes. It can be a path like /new-page or a full address like https://example.com/new-page.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.