I have implemented a number of 301 redirects after moving a site from Squarespace to Webflow. All my redirect are working perfectly and many are using wildcards, but I have one redirect that just will not take.
On Squarespace we had a number of different galleries (/photo-gallery/[name of gallery]) We have decide to not transfer all these galleries but would like to display a page that explains if anyone tries to access an old gallery URL. Here is the structure of the 301 that I have created
/photo-gallery/(.*) points to /no-photo-gallery
Basically, I am ignoring wildcard and pointing people to a single page with an explanation.
I have successfully used wildcards with many redirects without any problem and the only difference with this redirect is that I’m not using the wildcard parameter in the new URL.
Just to answer Anaru’s questions for others, 5 years later, the problem is that in a redirect URL certain characters like hyphens must be escaped.
The redirect docs go into detail, and there’s a link to the docs on the dashboard redirects page… but I think this is what you would use here, note the %-.