7 Steps to Create a Hubspot Flexible URL Redirect with Screenshots
With a flexible URL redirect in HubSpot, you can set 1 URL with a wildcard match to redirect in various ways.
For example, you can redirect an entire blog without needing to create URL mappings for each blog post.
Flexible pattern matching can get complex, but imagine this simple case:
- Over the years, you’ve shared a lot of blog articles from “oldblog.yoursite.com” and have referring links floating all around the internet (let’s pretend you haven’t been keeping track…)
- You’ve decided to create a new blog, have exported all your existing blog posts, imported to the new blog location, and the URL is different — from “oldblog.yoursite.com” to “newblog.yoursite.com”. — only the beginning URL has changed in this example.
- Instead of tracking down all of the places you’ve shared permalinks, you set up a flexible pattern URL redirect to magically map from the old blog URL to the new blog URL (without needing to update links across the internet).
- Anyone that clicks an existing referral link like “oldblog.yoursite.com/posts/example-title” will automatically get redirected to the same article (you imported all your blog content) under the new URL “newblog.mysite.com/posts/example-title”. Same content, you just migrated it.
Follow these 7 Steps to set up a flexible URL redirect for a Hubspot site with subpages:
- Navigate to your Hubspot instance (or update this link with your-account-id: https://app.hubspot.com/settings/your-account-id/domains/url-redirects)
- select the “Add URL redirect” button (at the time of writing, this is located on the right hand side, above the active redirects table, in orange)
- in the UI Modal Panel, select the “Flexible” radio option
- in the UI Modal Panel “Original URL *” form field, add your URL
- append “/*{wildcard_string}” to your URL (do not include the quotes. do include the beginning forward slash, otherwise it will not work)
- in the UI Modal Panel “Redirect to” form field, add your redirect to URL
- once the required form fields are filled out and there are no input errors, select the “ Add URL redirect” button to active the URL redirect (note the redirect can take some time to activate)
For more detailed info on Hubspot’s flexible pattern URL redirect, check out the documentation here.
If you found this helpful, like > follow > share > comment.
CR Rollyson is a Digital User Experience & Web Manager for a S&P 500 Fintech company and is the COO of Side Role, a marketing team in Charlotte North Carolina partnering with In-house Teams & Agencies, Non-profits, and Start-Ups. Learn more about Side Role here.