htaccess Redirect Generator

Type an old page address and its new address, and get the one line to add to your .htaccess file.

1 Fill in the boxes

2 Your answer

Your answer shows here as you type.

How to use the htaccess Redirect Generator

  1. Type the old page address, starting with a slash.
  2. Type the new page address.
  3. Pick permanent or temporary, then copy the line.

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 rankings go to the new address.

Where do I put the line?

In the file named .htaccess in your website's main folder on the server. Put it on its own line.

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