---
title: Perform redirects with wildcard patterns using a dictionary
summary: Match URL prefixes and make use of configurable response status and querystring preservation.
url: https://www.fastly.com/documentation/solutions/examples/perform-redirects-with-wildcard-patterns-using-a-dictionary
---

Match URL prefixes and make use of configurable response status and querystring preservation.

## VCL

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/4824b686)

## Compute

### Rust

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/0ed9f358)

### Javascript

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/132cbc86)

