WordPress
Save time creating 301 redirects
- Estimated reading time
- 1 min read
- Last updated
- Updated
A lot of times when a user is setting up 301 redirects they will usually end up create multiple redirects when in only one is actually needed. For example, say if you have URLs such as /catalog/sku1.html /catalog/sku2.html /catalog/sku3.html
A lot of times when a user is setting up 301 redirects they will usually end up create multiple redirects when in only one is actually needed. For example, say if you have URLs such as /catalog/sku1.html /catalog/sku2.html /catalog/sku3.html
Technically, you don't need to create a separate redirect for each one. You can use a rule like this:
Old URL: /catalog/(.*)
New URL: /products/$1In this example, everything after /catalog/ is captured and redirected to the matching path under /products/.