Bulk Redirect Rules Lists & Regex

Just to confirm, there is no way to use multiple /any wildcards in bulk redirect lists right?

Eg, redirects lile this:

rewrite ^/ggbv/(.*)/232343/(.*) https://www.domain.com/$1/assda/$2 permanent;

Can only be done in the single redirects?

That’s right. Bulk Redirects can do path matching if enabled:

example.com/foo/filename.ext > example.com/bar/filename.ext

But no wildcard or regex.

If your capture groups represent fixed-length strings, you can use a dynamic Single Redirect using the substring() function to rewrite the target URL. If not, you’d need the regex_replace() function, available in Business and Enterprise plans.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.