Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PageRules not work #241

Open
John-Henrique opened this issue May 24, 2023 · 0 comments
Open

PageRules not work #241

John-Henrique opened this issue May 24, 2023 · 0 comments

Comments

@John-Henrique
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant