Manage Page Rules

Learn how to add, edit, clone and delete page rules in the Medianova Panel.

You can manage Page Rules in the Medianova Panel or via API.

Log in to the Medianova Panel, 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.

Page Rules start screen

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 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

1

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 entries, and allows for selecting and configuring Page Rules settings.

Create a Page Rule screen
2

Set the File Path and File Extensions

3

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.

4

Deploy to CDN

Push the page rule to the CDN by clicking the Create button.

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.

Page rule details screen

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.

1

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:

Clone a Page Rule screen
2

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.

3

Deploy to CDN

Push the new page rule to the CDN by clicking the Clone button.

Edit a Page Rule

Change the page rule in three steps:

1

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.

2

Change the File Path and File Extensions

If you only want to change page rule settings, do not edit the file path and file extensions

3

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.

4

Deploy to CDN

Push the page rule to the CDN by clicking the Update button.

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.

Last updated

Was this helpful?