Simple Filename/Path Regex -


i need create regex expression use in redirect plugin in wordpress.

i have bunch of legacy url's this:

/article.php/281/19/0  /article.php/383/20 /article.php/28/2/1 

etc...

essentially want create regex strip off beyond first set of numbers.

e.g. /article.php/281/19/0 transforms /article.php/281

for yoast, can use

regex: /(article\.php\/[0-9]+)/

newurl: /$1/

based on: https://yoast.com/wordpress-seo-premium-1-1/


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -