How to match wildcard for jpg, png and folder

HI,
Question: 1
inside my files i have domain.com/assets

inside assets folder has jpg, png and js which i only need the correct way to wildcard only jpg and png

Question 2:
I have
domain.com/assets/avatars

inside avatar folder there are images but with different names, all end with .jpg
i tried

sopriza.com/assets/avatars*
sopriza.com/assets/avatars/*

Which is the correct one?
Thanks !

Greetings,

Thank you for asking:

In a single one (jpg and png both ends with g) to catch both from “assets” and “avatars” to be “jpg” or “png”:

sopriza.com/assets/*.*g

Or split in two Page Rules (if possible) to catch both “jpg” and “png” in “assets” along with “avatars”:

sopriza.com/assets/*.jpg
sopriza.com/assets/*.png

Try with:

sopriza.com/assets/avatars/*.jpg

But, that’s 3 Page Rules in total (maxed out for a Free plan).
Do you also want png in avatars or just jpg? :thinking:

1 Like

i will try
sopriza.com/assets/*.*g

1 Like

Right, in a single one as it would catch both “jpg” and “png” in “assets/” and “assets/avatars/”.

Tested, it’s working in a single Page Rule:


www.mydomain.hr/assets/abc.jpg
www.mydomain.hr/assets/def.png
www.mydomain.hr/assets/avatars/ghi.jpg
www.mydomain.hr/assets/avatars/jkl.png

This was the best assistant! Thank you. God bless :pray:

1 Like