Page Rules for localization

My website is in 6 different languages. Each lang is represted in the first segment of the url. Examples are

mydomain/de/static/… (German)
mydomain/pt/static/…
mydomain/ru/static/…
mydomain/es/static/…
mydomain/fr/static/…

For the english content there is no segment

mydomain/static/…

Now I wonder, how can I fetch all localized pages that have static in the url?
Would:

mydomain/static

catch all of them, including mydomain/static/... ?

Also, my home page does look as follows:

mydomain/de
mydomain/pt
mydomain/ru
mydomain/es
mydomain/fr
mydomain/

and is static aswell. Any chance to cache these 6 domains with one rule, or do I need to create one rule per language?

PS: I could not write mydomain.com because I am only allowed to paste 2 links in my post, since I am a new user.

Whoups, the important star was missing the rule should have been:

mydomain/ *static*

(It seems that I can’t edit my post?)

example.com/*static* should most likely cover your use-case, however keep in mind it will also apply to these two for example

example.com/non-static/directory/some-file.jpg
example.com/some/directory/file-static.txt

To avoid matching the second URL you could try example.com/*static/*

This topic was automatically closed after 14 days. New replies are no longer allowed.