To match both all pages on the domain and all subdomains and pages, you should use the following wildcard pattern:
text
*example.com/*
This pattern is versatile and accomplishes both objectives:
- It matches all pages on the domain: The trailing
/*
ensures that all pages under the main domain are included. - It matches all subdomains and their pages: The leading
*
before the domain name allows for any subdomain to be matched
1
.
This wildcard pattern is particularly useful because:
- It covers the root domain (example.com) and all its pages.
- It includes all possible subdomains (like www.example.com, blog.example.com, etc.) and all pages under those subdomains.
- It’s more comprehensive than just
example.com/*
, which would only match pages on the main domain but not subdomains
1
.
It’s important to note that writing just example.com
will not work for matching all pages and subdomains. The asterisks at the beginning and end are crucial for achieving the desired broad matching
1
.