Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^listings\/r\/([0-9]+)\/$
/
gm

Description

DYN Listing Detail Pages from saved search

incoming URL examples:

https://www.rogerholloway.com/listings/r/3557653/

outgoing URL is:

https://www.rogerholloway.com/property-search/detail/93/3557653/

RewriteRule ^listings/r/([0-9]+)/$ https://www.rogerholloway.com/property-search/detail/93/$2/ [R=302,L]

Submitted by anonymous - 5 years ago