# Add Rule

<figure><img src="https://2201914913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mcrl3c2U4TSqAEa9UMX%2Fuploads%2Fubtvb2kydsPLQ8ayEFLF%2Fimage.png?alt=media&#x26;token=640b314c-68c5-4a74-89dc-e606eb7a33a4" alt=""><figcaption><p>Add HTTPs Rules</p></figcaption></figure>

Here's an example of adding a rule:

<figure><img src="https://2201914913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mcrl3c2U4TSqAEa9UMX%2Fuploads%2Fq3cqyhVn4REHj6T6Ri5F%2Fimage.png?alt=media&#x26;token=55cd7e5f-32e2-4267-8c57-9fe065266973" alt="" width="563"><figcaption></figcaption></figure>

* Step 1: enter the desired domain that the rule is to be applied. The domain must be included as it is a part of the pattern, and the rule will only be effective for domains that match this pattern.
* Step 2: enter the pattern that will be checked to determine which URLs the rule should apply to. You can use regular expressions to form this pattern to allow flexibility in searching.
* Step 3: enter the pattern type, which currently only supports URL patterns.
* Step 4, for redirection only, enter the rewrite pattern, which is a part of the pattern and will override the corresponding content in the rewrite information.
* Step 5, for redirection only, enter the rewrite information, which is the text that will replace the matched content based on the rewrite pattern.
* Step 6, select the rule type that will be performed using the pattern. Currently, only redirection/rewrite and denial are supported. Various options change the return code received by the browser.
* Lastly, click "**Submit**" to complete adding the rule.&#x20;
