This article provides instructions on how to set up policies for links. For full instructions on how to build a custom policy, visit:
This section provides instructions on how to set up policies to find specific links. These are located in the href=""
section of the anchor tags on the domain.
To create this policy:
Enter the following in the Query field and replace the word SEARCH
with what you want to find inside the link portion:
href=("|').*SEARCH.*("|')
For example:
href=("|').*foo.*("|')
The query matches:
<a href="http://test.com/foo">here</a>
<a href="http://foo.com/test">click</a>
<a href="http://test.foo/test">click here</a>
However, it does not match:
<a href="http://test.com/test">foo</a>
If the policy you need is difficult to create, contact Support for assistance.
Regex: Use regular expressions to define what you want to search.
Regular Expressions in source-code exclusions are not 100% compatible with Acquia Optimize Policies. The languages are different (Java and Ruby).
For full instructions on how to build a custom policy, visit:
For documentation and advanced help files including SDK information for developers, visit Acquia Optimize for Developers.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Tue May 20 2025 12:00:58 GMT+0000 (Coordinated Universal Time)