rsanchez / resource_router

Resource Router for ExpressionEngine
MIT License
48 stars 12 forks source link

How to redirect first random segment #45

Open klibansky opened 7 years ago

klibansky commented 7 years ago

I would like to redirect a random 2-character first segment with any 2nd, 3rd etc. segment to the home page.

I have a hole list of random 2-character 404's in Google Search Console that I would like to redirect to the home page.

domain.com/dO
domain.com/rL
domain.com/xU
domain.com/8U
etc.
domain.com/dO/bla/bla/bla
domain.com/tR/bla/bla
etc.

What is the rule needed to accomplish this?