Is there a way to use one redirect to re-direct all of the old .html pages to Hubspot COS pages.
Something like this old page
redirect
https://www.mysite.com/about.html
with this code
https://www.mysite.com/{rest of url}.html
redirect to my new hubspot page
https://www.mysite.com/{rest of url}
I am trying to avoid a bunch of page level redirects from the old .html pages to the new Hubspot COS pages
Hey @TwoM this is something I was able to accomplish recently for a project I was working on. I'm sure you've already come across this article. There are two types of components you can add into your flexible URL mappings. One is the * asterisk character and the other is the : colon character. The * asterisk character creates a component that goes all the way until the very end of the URL, which in your case would include the html at the end of the URL which we wouldn't want. The : colon character, on the other hand, creates a named component that is matched until the next delimiter character (./=&?). So in your scenario, you can accomplish this with a few different redirects (you'd need to set up one for each subdirectory that you have on your site). Example:
Hey @TwoM this is something I was able to accomplish recently for a project I was working on. I'm sure you've already come across this article. There are two types of components you can add into your flexible URL mappings. One is the * asterisk character and the other is the : colon character. The * asterisk character creates a component that goes all the way until the very end of the URL, which in your case would include the html at the end of the URL which we wouldn't want. The : colon character, on the other hand, creates a named component that is matched until the next delimiter character (./=&?). So in your scenario, you can accomplish this with a few different redirects (you'd need to set up one for each subdirectory that you have on your site). Example: