1👍
✅
The problem is that your first regex is not rooted. It matches ‘$’ which basically means “any string that ends” – which is everything. So all URLs end up being matched by that pattern.
It should be ^$
, ie the empty string.
Source:stackexchange.com