Content Rules let you change the content your domain sends to visitors without editing individual pages. You can replace plain text, add or remove HTML, or serve a complete page from another URL. Each rule can apply to selected pages and requests, giving you control over which visitors receive the changes.
When a request falls within a rule's schedule and page scope and meets its conditions, Priority Prospect applies the rule to the response. Content Rules work with responses from both your hosting account and the cache. They change the response sent to the visitor without editing your site's stored content.
There are two available actions:
Replace content searches the HTML response and replaces matching content with the value you provide. This can be a word or an entire HTML block, including embedded CSS or JavaScript. Choose Text for a literal match or Regex for a pattern. You can control the number of replacements and whether capitalization must match.
Load URL fetches content from a Source URL and uses it as the entire response for matching requests. If fetching the source fails, those requests receive an HTTP 500 error.
A rule can apply to every page or selected URL paths. You can also exclude pages. Path matching supports exact paths, partial matches, and regular expressions.
Optional conditions let you target requests using details such as country, IP address, user agent, or predefined bot. Without conditions, an active rule applies to every request within its page scope. OR joins alternatives within a condition group, so at least one condition must match. AND connects groups, so every group must match.
You can schedule a start time and an optional expiration date. Scheduling uses the UTC time zone. If multiple rules apply, higher priority numbers execute first.
Find PBN hosting in a page's HTML and replace it with a link to Priority Prospect. The same rule can apply across selected pages, saving you from editing each page individually. The tutorial below shows how to set this up.
Replace an existing HTML block with updated content, such as a temporary announcement. You can include the original markup in the replacement to add content around it, or replace a matched block with an empty value to remove it. Set an expiration date if the change should end automatically.
Conditions let you control what different requests receive and limit what unwanted visitors see. For example, you can keep the usual content available to requests matching Googlebot or Bingbot and configure a rule to serve alternative content to requests that match neither.
Use Replace content to change a particular section, or Load URL to serve an entire alternative page. Match requests using the predefined bot conditions or other available request details. Which version a visitor receives depends on the conditions you configure and your site's original response.
This example turns PBN hosting into a link to Priority Prospect. Start with a page where the phrase appears as ordinary text.
In the Priority Prospect panel, open Domains, select your domain, and choose the Content Rules tab in its details.
Select Add Content Rule. Enter a Rule Name, such as Add Priority Prospect link. You can leave Rule priority at 0 for this example.
Set the Start date to when you want the rule to begin. Leave End date empty if it should not expire. Remember that these fields use the UTC time zone.
Under Apply to pages, choose Exact pages and enter the path of your test page, such as /sample-page/. Use the path of an existing page containing the phrase. Leave Exclude pages set to None and add no conditions so the rule applies to everyone visiting that page.
Under Rule Action, select Replace content. Set Search with to Text and enter PBN hosting in Find.
In Replace with, enter:
<a href="https://priorityprospect.com">PBN hosting</a>Set Replacement limit to 1 to replace one occurrence per response. Increase it if you want more occurrences replaced. Leave Case sensitive off unless capitalization must match exactly.
Select Create Rule. Once the rule is active, open your test page and check that the phrase links to Priority Prospect. Check another page to confirm the rule is limited to the selected path.
New or edited rules usually take effect within seconds, but activation can take up to five minutes. From the Content Rules tab, you can edit a rule, disable it with its switch, or delete it. After testing, you can expand its page scope or add conditions as needed.