Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
PCRE2 (PHP >=7.3)

/
^wp-content\/uploads\/(?!(2021\/06||2021\/07)\/).+$
/
gm

Description

.htaccess wordpress redirect uploads to production domain

Submitted by anonymous - 3 years ago