How to Set Up Flexible Pattern URL Redirects in HubSpot

How to Set Up Flexible Pattern URL Redirects in HubSpot

If you’ve ever launched a new website, migrated to HubSpot, or reorganized your content structure, you know one thing all too well: bad redirects break things. They confuse search engines, frustrate users, and tank hard-earned SEO momentum.

You need redirects, yes—but not a tangle of one-off patches or hundreds of manual entries. That’s where flexible pattern redirects in HubSpot come in. This feature allows you to automate redirection across multiple URLs using structured rules based on patterns. No more spreadsheet gymnastics or QA nightmares.

Whether you’re prepping for a redesign, archiving seasonal campaigns, or merging localized URLs, this guide walks you through everything you need to set up flexible pattern redirects in HubSpot—step by step. You’ll also learn how the system works behind the scenes, common pitfalls to avoid, and how to monitor performance with built-in analytics.

 

What Are Flexible Pattern URL Redirects

Flexible pattern redirects are a smarter way to manage URL changes inside HubSpot. Instead of building a redirect for every page, you define a reusable rule that applies to a group of URLs with the same structure.

Say you’re consolidating content and want to move from /blog/[topic]/[post-title] to /resources/[topic]/[post-title]. With a pattern redirect, HubSpot interprets those bracketed tokens as flexible variables and automatically updates links that match—even ones you add down the line.

To set one up, go to Settings > Website > Domains & URLs > URL Redirects. Choose “Pattern Redirect” to get started. HubSpot enforces these rules across all of your connected CMS-hosted domains by default, though you can limit redirects to specific domains if needed.

These redirects execute at the CMS level before any content loads. That means both users and search crawlers are directed to the correct destination immediately, preserving SEO rankings and improving load times.

Pattern redirects are available with HubSpot CMS Hub Professional and Enterprise subscriptions—ideal for companies managing multiple domains or large content libraries.

 

How It Works Under the Hood

When a visitor lands on your site, HubSpot checks the URL of their request against your redirect rules. If a match is found, HubSpot extracts the dynamic parts from that request and builds the proper destination URL using the pattern you’ve defined.

The engine follows this flow:

  1. Scans incoming requests to find applicable redirect rules.
  2. Matches the request against any available patterns.
  3. Extracts dynamic tokens (e.g., {topic}) from the path.
  4. Replace them in the destination template.
  5. Returns a 301 or 302 response to redirect the browser.
  6. Logs the event for reporting and diagnostics.

Here’s what you control:

  • Original pattern: the structure of the old URLs
  • Redirect pattern: your desired URL structure
  • Redirect type: either 301 (permanent) or 302 (temporary)
  • Domain target (optional): limit the rule to a specific domain

This setup allows you to automate large-scale redirects with a single rule. Use wildcards (*) or named variables ({slug}) to define flexible segments. HubSpot encourages testing a few URLs before rolling out comprehensive patterns to avoid misfires or gaps.

Note that token position matters. If you’re mixing wildcards and static paths, the syntax must be consistent. HubSpot executes the first rule that matches a URL, so precise ordering is key when you have overlapping patterns.

 

Main Uses Inside HubSpot

Large Website Restructures

Reorganizing a website usually means breaking URL paths—sometimes by the hundreds. Instead of mapping these one by one, set a pattern.

For example:

/services/[service-name]/details to /solutions/[service-name]

This can instantly route users to the correct pages with zero manual upkeep. You preserve your traffic and rankings by letting HubSpot do the heavy lifting.

Multi-Language or Regional Variants

If you’re managing multilingual content—URLs like /fr/, /de/, or /es/—keeping language paths updated gets tricky. Pattern redirects simplify this by automatically redirecting visitors.

Try something like:

/es/blog/{slug} to /es/resources/{slug}

Now, whether content is renamed, restructured, or merged, your Spanish-speaking audience ends up right where they should.

Campaign and Asset Expiration

Marketing URLs have short lifespans. If you’ve run a seasonal promo at /spring-sale/*, you don’t want those links going dead after the campaign ends.

With a pattern like:

/spring-sale/* to /offers/seasonal-discounts

You can automatically route old traffic to a fallback offer. That saves you from updating sponsored links or ad landing pages down the road.

Migration from Another Platform

During CMS migrations, legacy URLs often follow different naming conventions. Rather than rewriting every inbound link, use a redirect structure like:

/category/{topic}/{post} to /blog/{topic}/{post}

This preserves both your SEO authority and UX while switching over systems—even in phased migrations where both sites live side-by-side.

 

Common Setup Errors and Wrong Assumptions

Pattern redirects are efficient—but prone to missteps if you’re not careful. A few incorrect assumptions can lead to redirect loops or dropped traffic.

Watch out for these common issues:

Overlapping rules
If two patterns match the same URL, only the first one applies.
Fix: Prioritize specific rules first in your setup order.

Missing wildcards or tokens
Forgetting a {slug} or * prevents HubSpot from applying the redirect.
Fix: Make sure you define every variable your URLs include.

Choosing the wrong redirect type
Using a 302 instead of a 301 means you won’t pass SEO equity.
Fix: Use 301 for permanent changes, 302 only for short-term needs.

Inconsistent trailing slashes
HubSpot treats /page and /page/ as separate paths.
Fix: Stay consistent and mirror trailing slashes in both patterns.

Avoiding these slipups early on keeps your redirects clean, your SEO strong, and your reporting accurate.

 

Step-by-Step Setup or Use Guide

Before you begin, make sure you have Super Admin or CMS-level permissions and that your domains are properly connected in HubSpot.

Here’s how to set up a flexible pattern redirect:

  1. Go to your HubSpot dashboard and click Settings
  2. In the left sidebar, navigate to Website → Domains & URLs
  3. Select the URL Redirects tab
  4. Click Add URL Redirect and choose Pattern Redirect
  5. Enter the original pattern (e.g., /old-blog/{topic}/{article})
  6. Set the new pattern (e.g., /resources/{topic}/{article})
  7. Choose the redirect type—301 is recommended for permanent changes
  8. (Optional) Apply the redirect to a specific domain
  9. Save the redirect; HubSpot will flag any syntax issues
  10. Test key URLs from your old structure to confirm redirects work

For large-scale substitutions, keep a spreadsheet of your old and new patterns. While HubSpot lets you import static redirects in bulk, pattern-based configurations must be done manually.

This organizational method also helps with QA and ensures clean data for analytics validation.

 

Measuring Results in HubSpot

After setting up your pattern redirects, the next step is to track performance. You need to know redirects are functioning and contributing to your goals—not harming them.

Start by checking out Traffic Analytics under Reports → Analytics Tools → Traffic Analytics. Filter by dates after the redirect to confirm traffic is flowing to your new URLs and that page views remain stable.

Next, use the SEO Recommendations tool in the Website section. HubSpot scans your site and flags broken redirects or chaining issues. A clean bill of health here means your setup is on solid ground.

For deeper reporting, build a custom redirect dashboard that includes:

  • Visit volume to new URLs vs. legacy pages
  • 404 error occurrences from Website Pages > Optimization Recommendations
  • Bounce rate on redirected pages to ensure users are staying engaged
  • Organic keyword rankings (via your linked Google Search Console data)

If you notice a dip in page visits, search visibility, or engagement, double-check whether you’re using 302s when 301s are more appropriate. HubSpot lets you export raw traffic logs, which you can cross-reference in tools like Google Analytics or Ahrefs for a more comprehensive view.

 

Short Example That Ties It Together

Picture a company moving its knowledge base from /insights/ to /learn/. With over 200 articles, creating manual redirects would be tedious and error-prone.

Instead, they define a pattern redirect in HubSpot:

  • Original: /insights/{category}/{post}
  • New: /learn/{category}/{post}
  • Redirect type: 301

This redirects every article—past and future—automatically. Within minutes, all indexed URLs are updated, no broken links appear, and analytics show that user traffic resumes where it left off.

In this single step, the team protects SEO equity, simplifies management, and reduces setup time from hours to minutes.

 

How INSIDEA Helps

Setting up flexible pattern redirects sounds simple—until you’re managing five merged domains, multilingual versions, or legacy systems from three CMS platforms. That’s where INSIDEA comes in.

We partner with your team to plan, configure, and monitor redirect rules that protect your SEO health and ensure accurate reporting inside HubSpot. And if you’re migrating content or setting up automations, our experts keep your workflows clean and scalable.

Here’s how INSIDEA can support you:

  • HubSpot onboarding: Set up domains, base site structure, and technical configurations.
  • Ongoing HubSpot management: Maintain redirect rules, audit changes, and troubleshoot issues.
  • Workflow integration: Tie redirects into content lifecycle and campaign automations.
  • Reporting setup: Build custom dashboards focused on post-redirect traffic patterns.
  • Technical SEO support: Implement redirect best practices alongside metadata, mobile readiness, and crawl management.

Need help getting your URL architecture aligned? Connect with our HubSpot advisors or check out INSIDEA’s HubSpot consulting services

Jigar Thakker is a HubSpot Certified Expert and CBO at INSIDEA. With over 7 years of expertise in digital marketing and automation, Jigar specializes in optimizing RevOps strategies, helping businesses unlock their full potential. A HubSpot Community Champion, he is proficient in all HubSpot solutions, including Sales, Marketing, Service, CMS, and Operations Hubs. Jigar is dedicated to transforming your RevOps into a revenue-generating powerhouse, leveraging HubSpot’s unique capabilities to boost sales and marketing conversions.

The Award-Winning Team Is Ready.

Are You?

“At INSIDEA, it’s all about putting people first. Our top priority? You. Whether you’re part of our incredible team, a valued customer, or a trusted partner, your satisfaction always comes before anything else. We’re not just focused on meeting expectations; we’re here to exceed them and that’s what we take pride in!”

Pratik Thakker

Founder & CEO

Company-of-the-year

Featured In

Ready to take your marketing to the next level?

Book a demo and discovery call to get a look at:


By clicking next, you agree to receive communications from INSIDEA in accordance with our Privacy Policy.