Trying to setup a Regular Expression Redirect and its not working. ((Content > Content Settings > COS URL Mappings.
Based on my research of Regex, /^tds-download$ start at ^ and end at $ . I have this expression (/^tds-download$) setup as the Redirected URL and the Redirect Destination is the homepage (http://www.mcpolymers.com).
Under the Advanced options, these are checked:
Redirected URLs should match original URL’s query string, or lack thereof
Original URL is a flexible pattern URL
Redirect requests with or without a trailing slash
Redirect requests regardless of protocol (either http or https)
We do support a type of pattern matching for URL mappings, but our flexible pattern matching does not support regex syntax. You can find more details about setting up flexible pattern URL mappings here:
Navigate to Content > Content Settings to begin setting up a flexible pattern URL mapping in HubSpot.
If you just need to redirect that one page to the home page of your site, you should be able to do that by using: /tds-download for the Original URL or path / for the Destination URL or path
You would want to use the same options, except you wouldn’t need the flexible pattern URL option checked.