Wild card rules

Hello! I have a question about wildcard rules.

I want to setup an access block to a specific page example. com/admin but also on dev.example. com/admin

Do i need to add 2x rules here? Like
example.com/admin
*.example.com/admin

Or is it possible to target all sub domains and the normal domain in one rule? Like
*example. com/admin

Precisely, that should work.