What is a 301 Redirect, and When Should You Use One?

I moved five times in the last year. And every single time I moved, I forgot to sign up to have my mail forwarded to my new address.

Mail forwarding is an important step in any moving process, as it ensures you don’t lose any valuable information that’s sent to you.

And the same can be said for your website: If you’re moving a website from one URL to another, you need to take the necessary steps to ensure your visitors get sent to the right place. In the world of tech, this is called a 301 redirect.

Here, we’re going to discuss what a 301 redirect is and when you need to use one, as well as how to redirect a URL in HubSpot or WordPress. Additionally, we’ll explore the differences between a 301 and 302 redirect.

Let’s dive in.

How strong is your website? Grade it using HubSpot's free Website Grader.

What is a 301 redirect?

301 is a status code which a server sends to your browser. It is one of many possible status codes, some of which you’ve probably heard about (including 404 – Not Found, 403 – Forbidden and, 500 – Server Error). When you visit a webpage and the server sends the page normally, the status code it attaches to that page is 200 – OK.

You can think of a 301 redirect like a mail forwarder. Once you’ve moved a piece of content away from a specific URL, anyone who tries to visit it will receive a 404 – page not found message.

To improve their user journey, you can ask the server to forward visits from the old URL to a new location — the new home of your piece of content — using a 301 redirect.

Now, when you attempt to visit the old URL, the server will send back the 301 – Permanently Moved status code, and then move you on to the new location.

This happens so quickly that you’re usually not aware of it, and will simply find yourself on the piece of content for which you’d searched. You might notice that the URL is different from the one you clicked on, or typed in. Or you might have a browser extension such as Ayima Redirect Path which lets you know when you’ve been redirected.

The other key role that a 301 redirect fulfills is with search engines. Having useful status codes that correctly signal where content has moved to allows search engines such as Google and Bing to keep their index up-to-date.

Essentially, a 301 redirect will let search engines know:“Hey, you know that piece of content that users enjoyed clicking on from the SERPs? Well, it now lives over here, so take all that visibility you associated with this page, and transfer it over to this new URL.”

This is why 301 redirects are important for SEO.

Now that we’ve covered that, let’s dive into how you can do a 301 redirect for yourself. 

How to Do a 301 Redirect

The actual process of implementing a 301 redirect varies from CMS to CMS and platform to platform. While we aren’t able to discuss the specifics of every CMS platform, we can take a close look at HubSpot and WordPress. Hopefully, these instructions should help you get started regardless of the CMS you use.

How to Redirect a URL in HubSpot

1. To set up a redirect in HubSpot, navigate to Settings (using the cog in the top right) > Domains and URLs > URL Redirects.

2. From here, choose “Add a URL redirect”. The interface looks like this:

We’ll go over some use cases later, but for now let’s look at the options here.


In most cases, you will want to implement a single page-to-page redirect. In this case, choose “standard.” Next, you’ll want to add the Original URL and the Redirect To URL — for your old and new URLs, respectively.

You can hit “Add URL Redirect” and the redirect will be added to HubSpot.

At this stage, we would always recommend testing your redirect. First, expect to wait a few minutes for the change to apply to the server. Next, try visiting the Original URL in an incognito browser window and check that it works as you expected.


In some cases, creating single page-to-page redirects is very inefficient. For example, if you have just moved an entire folder of content, you may have 15 pages within a subfolder that you now need to redirect. In such cases, it’s a better idea to use a flexible redirect.

You can think of a flexible redirect as a formula, or a rule. It will allow you to redirect everything within a certain folder to a different folder, while keeping the rest of the URL the same.

When you select Flexible redirect, HubSpot will automatically provide you the link to the flexible URL pattern redirect help page, which will give you specific guidance on how to use the syntax for this feature.

More Options

Under More Options, HubSpot offers various advanced variations on these redirect types. It will allow you to deliver a 302 Temporary Redirect instead, choose the order which HubSpot moves through the redirect rules when resolving a URL (which may change which valid rule is triggered), disable a redirect if content is present at the URL, preserve query strings, force HTTPS, and force trailing slashes on the end of all URLs.

How to Redirect a URL in WordPress

If you aren’t a HubSpot customer, then you will need to apply 301 redirects differently. WordPress is the most popular CMS in the world, so it makes sense for us to touch upon how one might go about looking at redirects in a WordPress context next.

However, it’s important to note that WordPress itself is very flexible. Installations of WordPress can vary wildly, and so there is no one-size-fits-all guide we can provide as was the case with the HubSpot CMS.

If in doubt, you should consult your web developer when it comes to adding URL redirects.

1. Apply a redirect via the server itself.

The best way to apply redirects from a speed and technical point of view is actually via the server itself, rather than relying on WordPress to do it. WordPress does not offer a facility to implement 301 redirects out-the-box, although there are plenty of plugins available that will give you access to this functionality.

When applying 301 redirects via the server itself, this is going to vary wildly depending on the software stack your server is using. You might be using Apache, nginx, IIS or some other platform, each of which will need to be tackled differently. This may also vary depending on your hosting provider.

If you do not know how to apply a redirect via the server itself, it’s not something we’d recommend fiddling with as it may lead to an interruption of service for your website — instead, we’d suggest consulting with your IT team or web development partner.

2. Redirect a URL using a free WordPress plugin.

Sometimes in marketing, you must compromise that optimal solution for the solution you can actually achieve. This may be one of those cases. If for some reason you are not able to implement a redirect via your server, you can consider using a WordPress plugin.

This is not the optimal method — plugins will be slower, and you are forced to rely on third-party code, so proceed at your own risk.

Image Source

Each interface will be different, so you will have to consult any third-party plugin’s help documentation for specific guidance.

When to Use a 301 Redirect vs. a 302 Redirect

In general, you should expect to use 301 redirects.

However, there are a few cases when you might want to use a 302, instead, including:

  • You might be using a phased website launch plan.
  • You might be redirecting users as part of functionality where SEO does not apply, such as login gateways or e-commerce checkouts.
  • You might be using a temporary holding page, and do not want to confuse search engines or damage your search engine rankings by signaling that you’re permanently redirecting your detailed, rich content to an empty holding page.

301 Redirect Use Cases

Here are some specific cases where you will want to reach for the 301 redirect as a tool.

1. Changing a URL.

Maybe your original URL was poorly optimized, or you are re-organizing the folder structure of your website URLs.

Moving a piece of content in HubSpot CMS is very simple — just change the URL on the settings tab of the content’s edit page, and HubSpot will automatically add a URL redirect for you. Be sure to check that this is working before you move on.

2. Recreating a piece of content.

Sometimes, you might want to completely rebuild your old piece of content on an entirely new page — for instance, if you decide you want to use a different webpage template. 

In this case, you’ll want to make sure that you have implemented a simple 301 redirect from the old URL to your new one. Once this is in place, be sure to un-publish and archive the old page.

If doing a lot of these, we suggest using a flexible rule or, if a flexible rule is not appropriate, using a tool such as Screaming Frog SEO Spider in conjunction with Google Sheets or Microsoft Excel to map your redirects in bulk, and then import them into HubSpot.

You can do this on the URL Redirects page using the Import button:

HubSpot will provide you with a sample file to structure your redirects, and a link to the bulk upload redirects help page.

3. Consolidating several pieces of content.

If you have decided that you have multiple pieces of content that overlap, compete for the same keywords, or all cover the same topic, you might want to consolidate them. However, you will not want to throw away the search engine visibility that these old pages might have achieved.

Once you have created your new, consolidated resource, you should set up a simple 301 redirect from each of the old pages, to the single new page.

4. Migrating content from one domain to another.

If you’re moving your website from one domain to another, it is vitally important that you implement page-to-page 301 redirects from your old content to your new content.

This is easy if the site is moving a domain, but remaining the same in terms of structure and layout. If the content is changing or being restructured, it is still important that you make sensible redirection choices that honor your users original intent, in order to pass the visibility of each of your old pages to their new counterparts.

When implementing page-to-page 301 redirects from one domain to another, you have a specific challenge to keep in-mind: your redirects must be served from the Original URL.

It is useless if, for instance, you’ve connected HubSpot to your new domain, but not your old domain, for you to then host the 301 redirects for your old domain onto HubSpot. You will need to work with your IT partner, web development partner, and/or HubSpot partner to ensure that serving redirects from your old domain has been accounted for. We recommend that these remain in place indefinitely.

Migrating a Website During a Phased Web Launch

You may be moving your website from one domain to another as outlined above, but due to project constraints, you are using a phased launch approach. This means that you’re launching the core website pages in phase one, then a second wave of pages in phase two, and so on.

In this case, we recommend creating a phased redirect map. All URLs from your old domain should be accounted for, and a redirect outlined for each phase.

For phase one, you will expect to implement 301 redirects for all the pages that will be accounted for on the new site. You will also add 302 redirects for all other pages, usually to the new website’s homepage. This will prevent users trying to visit your old domain from receiving a 404 error, without confusing search engines by having your pages suddenly redirect to seemingly irrelevant content.

As you launch each phase, you should update your redirects, replacing your 302s with 301s as the counterpart content becomes available.

Once again, these redirects must be implemented such that they are served from your old domain.

301 Redirect Mistakes to Avoid

Now that you understand the importance of the 301 redirect, we’ll review common steps in the process to review to make sure you don’t make a mistake that could adversely impact your site’s SEO.

1. Setting up a 302 redirect between versions of your domains.

301 redirects point the power of inbound links from one URL to another, and although it might not look like it, http://blog.hubspot.com and blog.hubspot.com are two different URLs. Make sure you set up a 301 redirect from all of the different iterations of your brand’s domain to boost your search engine results.

2. Setting up a 301 redirect after creating a new page.

Back in 2010, Toys ‘R Us purchased the toys.com domain without setting up a 301 redirect first, and their new site’s SEO results plummeted because it was re-crawled by Google as a brand-new domain without inbound links from the original Toys ‘R Us domain pointing to it. Be sure to set up the 301 redirect before migrating your website content so your site doesn’t lose traffic in the process.

3. Using a 302 redirect during content migration.

Unless you’re temporarily migrating your website’s content while updating or repairing your website, use a 301 redirect to maintain the inbound links and your search rankings while making changes to your domain.

4. Having redirects link to outdated content.

If you don’t set up redirects from the older internal links on your website (such as a link to your company blog on your homepage), you’ll create a bad user experience for site visitors who click on these older, not-directed links. The old internal link will eventually kick over to the new domain, but it might take several seconds or show a white screen in the meantime.

5. Redirect a page with a different intent than the destination page.

This will be a breeze with proper organization and record keeping, but make sure that you’re redirecting to the correct pages. To illustrate, you wouldn’t want to redirect a user looking for your homepage to your blog page.

Keeping this transition smooth will contribute to SEO being accurate, and will lead to more happy visitors to your site.

Whether you’re thinking about overhauling all content in a site migration, or you’re just refurbishing some outdated webpages, 301 redirects help. If you’re planning out this new stage, think about incorporating them in your project; your SEO won’t take a dive and website visitors will continue to find the helpful content they’re looking for.

Other Types of Redirects

There are other types of redirect too, including:

1. 302 – Temporarily Moved

This functions almost identically to a 301 redirect. However in this instance, we are acknowledging that the move is temporary. For a user, this makes no practical difference, but for a search engine the message is clear — don’t worry about ranking this new page, as it won’t be around for long. Stick to using the old one, it will be back.

2. Meta Refresh, or Javascript Redirects

This is different from the previous two approaches. The page will load normally with a 200 – OK status code. Then, a script runs on the page that moves the user onto another page.

There may be certain edge cases when this is the only practical option, but in general you should avoid this approach. It is not associated with SEO best practices and often can provide a confusing user experience.

Addressing Internal 404 Errors

Your SEO or web team might have identified some broken links on your website. In this case, it’s best practice to create a 301 redirect to forward users from the broken URL through to an appropriate resource — one that is fundamentally congruent with the piece of content they were expecting to find.

However, you should also look to update the offending hyperlinks to point to the new URL, as well. Having a website that relies on 301 redirects for internal navigation is not best practice.

Addressing 404 Errors Reported in Google Search Console

Sometimes, you will see Google Search Console reporting 404 pages that you don’t even link to internally. So where do these come from?

Google Search Console populates its “Coverage” section from all kinds of sources. Sometimes the URLs are simply ones that it has seen before on a previous incarnation of your website, or it might have seen an external link on some other website.

Your mindset should be that if Google has seen this URL before, a user might have as well. They might have it saved as a bookmark, or have it written down in an email, or on a third party website, and they may still click on it. That being the case, you want to make sure that those users receive the optimum user experience, so you should try to create 301 redirects to push these users to an appropriate piece of content that is fundamentally congruent with the piece of content they were expecting to find.

301 redirects are vitally important for maintaining a healthy website. They serve a core function in signaling to both users and search engines when your website content moves and changes, and ensure that as your web presence evolves, your user journey remains clear and logical, and your visibility in search engines is preserved from iteration to iteration.

Be sure to familiarize yourself with the method of implementing redirects within your current website environment, so that you can manage this effectively.

Editor’s Note: This post was originally published in December 2010 and has been updated for accuracy and comprehensiveness.

Improve your website with effective technical SEO. Start by conducting this audit.  

Originally published Jul 23, 2020 9:00:00 AM, updated July 23 2020


Technical SEO

What is Latent Semantic Indexing & Why Does it Matter for Your SEO Strategy?

If you’re anything like me, you probably read the title of this post and thought, “Latent semantic indexing … wait, what is that?”

Latent semantic indexing (LSI, for short) can be an overwhelming and confusing term for anyone hearing it for the first time.

Luckily, although it sounds like something that requires a degree in computer science, it’s actually a concept you’re already probably familiar with — particularly if you have some basic knowledge of keywords and their close relationship with search engine optimization (SEO).

In this post, we’ll define LSI and how the process can potentially benefit your overall SEO strategy, take a closer look at ways to find LSI-driven keywords, and outline how to add these keywords into your content.

Let’s dive right in, shall we?

Access Now: Technical SEO Glossary

What is latent semantic indexing?

Latent Semantic Indexing, also known as latent semantic analysis, is a mathematical practice that helps classify and retrieve information on particular key terms and concepts using singular value decomposition (SVD).

Through SVD, search engines are able to scan through unstructured data and identify any relationships between these terms and their context to better index these records for users online.

Before SVD, it was rather difficult for computers to try and grasp differences between synonyms or semantic changes.

To help paint a picture, take the words “silly” and “string”. When separated, these words represent two very independent definitions, but when brought together, their formation creates a brand-new concept: “silly string”.

If you work for an e-commerce company that sells silly string, you don’t want your content arising for the word “silly” alone — in that case, you’d need to use LSI keywords to help let search engines know for which searches it should serve up your content.

As technology adapted, the quality of user search was highly improved due to stronger patterns in relevancy. Through “stemming”, computers began taking into account the various forms a word could represent on a page.

Depending on the site’s content, search engines can serve up results based off relevancy (not using mind-reading, but instead using LSI keywords).

Search engines use LSI keywords to help add context to pages in order to provide better search results.

As LSI became more sophisticated, the ability to group thematically came into place, which for many rank-driven content writers meant synonyms became your best friend.

So … the more ranking LSI keywords, the better your overall position, right? Well, it depends.

What are LSI keywords?

LSI keywords are based off the idea that using similar keywords throughout your content to strengthen your topic or theme can help boost your overall SEO performance.

After all, if you end up ranking for one keyword, the possibility of you ranking for a related keyword sounds reasonable.

However, that isn’t necessarily always the case. There is quite a bit of contradictory analysis challenging how much LSI truly boosts your content.

As Google and other search engines have become more sophisticated and advanced, we have learned there are many outside factors that influence overall ranking.

In fact, there is no certainty behind the idea that LSI is a part of Google’s ranking algorithm. LSI is a practice dating back to the 1980s and in this day and age, we know Google’s too smart to rely on just synonyms to retrieve and index information.

So the power of “LSI keywords” comes into question. However, some argue that even if Google isn’t using LSI, there is no damage done in adding synonyms to your content, so long as they are not overstuffed and used naturally.

So what are a couple ways to help boost SEO that doesn’t rely on LSI?

  1. Use structured data! There is nothing Google likes better and will reward more than data that users can understand. For more information on what structured data is and how to add it to your website check out the Beginner’s Guide to Structured Data for Organizing & Optimizing Your Website.
  2. Practice co-occurrence, which relies on concept relativity, frequency in keyword occurrence, and closeness in keywords across different websites. Search engines will tend to use this method to scan and index websites most closely related. Therefore, if you’re looking for a place to start, you should:
    • Identify a long-tail keyword or phrase you would like to rank for
    • Research the top trending articles
    • Find which concepts or keywords they have in common
    • Incorporate and optimize on your findings!

Now, this doesn’t mean LSI driven keywords are bad for SEO, it just means it shouldn’t be your catch-all. In fact, there are a multitude of ways your content can benefit from LSI keywords. So let’s dive a little deeper into how you can use LSI content to your advantage.

Benefits of LSI-Driven Keyword Research

Search engines are constantly hunting for the most relevant and thorough content for a given query. The internet is much like the universe, ever-expansive and well, big. That said, it’s not an easy task for even the best of search engines, like Google, to determine what a page’s content is really about.

Better targeted categorization helps publishers, marketers, and users alike. For example, publishers can boost engagement since LSI-driven content is directed and selected for a specific audience. Online users mutually benefit since the queries they’re searching for are served up quicker and more accurately.

And, at the end of the day, users who find content that answer their questions are happy users, and happy users are more likely to engage or convert.

5 Ways to Find LSI Keywords

You’re one step closer to becoming an LSI expert. Congrats! Now that you’ve learned a little bit on the importance of LSI keywords, let’s walk through the various ways you can identify new keywords for upcoming blog posts and content.

1. A Simple Google Search

One of the easiest ways to find LSI keywords is Google itself. When you enter a term in the search query field, it automatically shows the keywords related to the particular query.

Let’s use the earlier example of “silly string” again. An initial search of the word provides these results:


Again, there are a lot of pages this particular keyword could point to which is why we need to use LSI to add more context. If you continue to scroll down to the bottom, you’ll find a section titled, “Searches related to” and your given query:

Screen Shot 2020-06-29 at 3.00.49 PM

Use the list of keywords as a starting point for potential LSI keywords because it reveals what Google already associates with your primary keywords.

The best part? This method is 100% free!

2. Use the Keyword Planner Tool via Google AdWords

If you have access to Google AdWords, you can also use their Keyword Planner tool.

Again, we’ll use the “silly string” example. Begin by adding the term into the initial query box. Click “Get ideas” and you’ll be redirected to a page that offers related keywords and an idea of how competitive search rankings are for said term.

google ad keyword

3. Take Advantage of SERP Stat’s Keyword Research Database Tool

Another free tool for you to use comes from SERP Stats. SERP Stat’s Keyword Research Database Tool is very similar to Google’s Keyword Planner. Simply add your query into the search bar and you’ll receive results based on volume of searches and CPC.


4. Use the LSI Keyword Generator

The LSI Graph/LSI Keyword Generator is another free tool that’s perfectly made for identifying LSI keywords. Similar to the previous tools mentioned, it follows the same rinse and repeat process. Add a term into the search bar, click “generate” and choose from a variety of related keywords below.


5. Try Ubersuggest

Lastly, another freebie to discover LSI keywords with is Ubersuggest. I’m sure at this point, you can guess how simple each of these tools are. All you need to do is enter you primary keyword, and Ubersuggest does the rest! From search volume, keyword difficulty, and CPC, you can expect a generated list of related search terms.


How to Select (and Use) the Best LSI Keywords

By this point, it’s likely (and normal) to have a long list of potential LSI keywords. The best way to cherry pick the finest keywords is to narrow down your options to those keywords that are most related to your content and have a sufficient search volume. Extra points if you can determine those golden nugget keywords with both high search volume and low keyword difficulty.

Understand the Three Different Types of Intent

It’s vital that your LSI keywords help answer any questions people might have about your primary keyword, so be sure to do some research on your target audience to figure out the types of queries they might put into Google to find your content.

We’ll refer back to “silly string” again, this time in the context that it’s on a site dedicated to exploring “how silly string works”. Below are three different types of intent someone on Google might have when searching for “silly string”:

  • Informational intent: This type of query is typically on a much broader scale. An example would be, “How does silly string work?”
  • Navigational intent: This is a more specific type of query. For instance, someone might want to know who invented silly string, or what it’s made out of.
  • Transactional intent: This type of query relates to purchasing something. In regards to our example, it could be related to purchasing silly string.

Choose Words That Add Context, But Don’t Overstuff

A misconception some people have is that you should use as many LSI keywords as possible to give your content a better chance at outranking others.

This is called overstuffing your content, and it’s a practice you’ll want to avoid because it could actually deter you from ranking. The best way to make sure your content isn’t overstuffed is to reread your content once all the keywords are added. If a specific word doesn’t sound natural, leave it out.

Remember That LSI Is Only Part of an Effective SEO Strategy

LSI is just potentially one of many factors that determine how well your content ranks in search engines. To achieve the best results and set your content up for success, an effective SEO strategy should also consist of proper website architecture, relevant backlinks, ongoing optimizations, etc.

With that said, it’s definitely worth taking the time to discover and add relevant LSI-driven keywords into your content, particularly since it can help your readers find the most relevant, helpful information to meet their needs, faster.

seo audit

Originally published Jun 29, 2020 2:00:00 PM, updated June 29 2020


Technical SEO