# Manage Page Rules

You can manage Page Rules in the [Medianova Panel](https://cloud.medianova.com/) or via [API](https://clients.medianova.com/api-documentation/performance-cdn/page-rule).

Log in to the [Medianova Panel](https://cloud.medianova.com/), select a CDN resource in the **CDN** section and navigate to the **Page Rules** tab.

### Turn on Page Rules

By default, Page Rules is disabled. Click the **Status** toggle to turn on Page Rules.

<figure><img src="/files/ksi5pUAV65VCDgG0oGUc" alt=""><figcaption><p>Page Rules start screen</p></figcaption></figure>

The screen now shows a **Create Page Rule** button, enabling you to get started with your first page rule.

### File Path and File Extension

Page Rules match on a combination of file path and file extension.

| Field           | Available options                     |
| --------------- | ------------------------------------- |
| File Path       | Directory, wildcard and regex pattern |
| File Extensions | Any, one or more                      |

Directory is recursive (unless using the [Exact Match](/products/performance-cdn/static-content-delivery/advanced-configuration/page-rules/page-rules-settings.md) setting), meaning `/dir/` matches all URLs for files in the `/dir/` directory and its subdirectories.

Wildcard is for example `*` to match on any URL path and `/*/images/` matches URLs in any second-level `images` directory.

When using regex pattern, only the `* . / () [] $` symbols are supported. You cannot use other symbols, including `? ! + ^`.

### Add a Page Rule

{% stepper %}
{% step %}
**Click the Create Page Rule button**

A new window appears containing a form to create a page rule. The form requires specifying a [File Path and one or more File Extension](#file-path-and-file-extension) entries, and allows for selecting and configuring [Page Rules settings](/products/performance-cdn/static-content-delivery/advanced-configuration/page-rules/page-rules-settings.md).

<figure><img src="/files/eETmjch3dCdJGwXoylAa" alt=""><figcaption><p>Create a Page Rule screen</p></figcaption></figure>
{% endstep %}

{% step %}
**Set the File Path and File Extensions**
{% endstep %}

{% step %}
**Select and Configure Settings**

From the drop down menu, select a setting and click the **Add a Setting** button. Configure the setting using the options that appear below the drop down menu.

Repeat this step if you want the page rule to trigger multiple actions.
{% endstep %}

{% step %}
**Deploy to CDN**

Push the page rule to the CDN by clicking the **Create** button.
{% endstep %}
{% endstepper %}

### View Page Rule Details

Find the page rule in the table, click the three dots and select **Page Rule Details**. The new window shows the status of every setting and details for each setting.

<figure><img src="/files/NEUKY5SSxue8jrM112dC" alt=""><figcaption><p>Page rule details screen</p></figcaption></figure>

### Clone a Page Rule

If you want to create a new page rule that is very similar to an existing rule, the easiest way is to clone the existing rule, and then apply changes to the clone.

{% stepper %}
{% step %}
**Select the Page Rule to Clone**

Find the page rule in the table, click the three dots and select **Clone Page Rule**. A new window appears for editing the cloned rule:

<figure><img src="/files/XCPVHIV39ycSy9iZkzSx" alt=""><figcaption><p>Clone a Page Rule screen</p></figcaption></figure>
{% endstep %}

{% step %}
**Set the File Path and File Extensions**

Set a combination of file path and file extensions that is different from the rule you just cloned.
{% endstep %}

{% step %}
**Deploy to CDN**

Push the new page rule to the CDN by clicking the **Clone** button.
{% endstep %}
{% endstepper %}

### Edit a Page Rule

Change the page rule in three steps:

{% stepper %}
{% step %}
**Select the Page Rule to Edit**

Find the page rule in the table, click the three dots and select **Edit Page Rule**. A new window appears for editing the rule.
{% endstep %}

{% step %}
**Change the File Path and File Extensions**

{% hint style="info" %}
If you only want to change page rule settings, do not edit the file path and file extensions
{% endhint %}
{% endstep %}

{% step %}
**Change Page Rule Settings**

From the drop down menu, select a setting you want to change and click the **Add a Setting** button. Configure the setting using the options that appear below the drop down menu.

Repeat this step if you want to change another setting.
{% endstep %}

{% step %}
**Deploy to CDN**

Push the page rule to the CDN by clicking the **Update** button.
{% endstep %}
{% endstepper %}

### Delete a Page Rule

Find the page rule in the table, click the three dots, select **Delete Page Rule** and click **Yes, Delete** in the confirmation window. This triggers an immediate update to CDN servers.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://clients.medianova.com/products/performance-cdn/static-content-delivery/advanced-configuration/page-rules/manage-page-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
