Skip to content

PageRules not work #241

Description

@John-Henrique

I`m trying do a page rule redirection, but every time get a error "1004 - Page Rule validation failed: See messages for details"

This is the example of code

        $pageRulesT = new Cloudflare\API\Configurations\PageRulesTargets( "webmail.domain.com/*" ); // Page Rules Targets
        $pageRulesA = new Cloudflare\API\Configurations\PageRulesActions( 301, 'https://mail.zoho.com/zm/' ); // Page Rules Actions
        $pageRules->createPageRule( $zoneID, $pageRulesT, $pageRulesA, true, null );

How to solve this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions