301 Redirect Bulk Generator
301 Redirect Bulk/Batch Generator for .htaccess files
Looking to generate a list of 301 redirect rules to add to your .htaccess file?
Here’s a simple tool to let you do just that. We use this ourselves when launching a new website, and it’s a piece of cake to use. Code licensed via GitHub.
- Create a spreadsheet
- In Column 1 put your previous URL
- In Column 2 put the new URL
- Copy all of the cells
- Paste them in the URL’s box below and click Generate!
URLs (old & new)
Sample URL’s shown below. Remove and add your own.
What is a 301 redirect?
301 redirect is the permanent moving of a web page from one location to another, and the 301 number refers to the HTTP status code of the redirected page.
In simple terms, a
301 redirect tells your internet browser that “This page has moved to a new location on a permanent basis and we don’t intend on moving it back.” – and then your browser sends you to the new webpage.
What is a .htaccess file?
.htaccess file is a text file that controls how a webserver responds to various requests. It is supported by all common webservers, including the popular Apache webserver used by most commercial hosting providers.
Common uses for .htaccess include redirecting URLs, enabling password protection for web pages, and displaying custom error pages such as 404 pages.
Why are 301 redirects necessary?
301 redirects are one of the main elements that SEO experts use on a regular basis. You can fix broken links with them, but you can also create redirect loops which can affect indexability if done wrong.
If you have a certain amount of backlinks pointing to a URL which now no longer exists, you’re also losing all the lovely link juice benefits passing on to your site.
Search engines want to provide the best possible experience for users, so if their results direct people to broken 404 pages, that’s bad. Once a page gets indexed, then it will appear somewhere in the search results when you search for it. If Google or other search engines consistently see a page with a 404 error, they will remove it from their index.
So this is obviously bad for your website as you’re losing important traffic, and it’s also bad for the user because they are missing out on your content.