Skip to content

Lock down a URL path

Protect an entire section by its URL — gate everything under /members/ while leaving a preview or about page public.

  • Prefix match
  • Exclude public pages
  • Redirect non-members
No credit card required
FreeRestrict & gate

When a members area lives under one URL path, gate it by URL instead of page-by-page. A URL rule with a Prefix pattern (e.g. /members/) locks everything beneath it, with Exclusions for any public pages and a Redirect for non-members. This recipe locks a path.

What you get
  • Everything under the path requires a subscription.
  • Named public pages are exempted via exclusions.
  • Non-members are redirected (e.g. to pricing).
  • One rule covers an entire section.
Copy these settings

The exact configuration

Enter these values and you have the setup live. Every field maps to a real ArraySubs setting.

SettingValue
Rule tabMember AccessMember Access → URL
Pattern Type + PatternRule targetPrefix · /members/
ExclusionsRule targete.g. /members/about/, /members/preview/
PriorityRule target10 (lower = evaluated first)
ActionRule actionRedirect (default) · Message · 403 · Login
Best for

When to use this setup

A members area under a single path
Gating app/dashboard routes
Whole-section protection
Set up

Set it up in 3 steps

A step-by-step guide drawn from the ArraySubs user manual. Open the linked page for the full walkthrough and screenshots.

  1. Add a URL rule

    In Member Access → URL, add a rule, set Pattern Type = Prefix and the Pattern to your path (e.g. /members/).

    Access Rules
  2. Add exclusions and priority

    List any public sub-paths in Exclusions, and set Priority (1–100, lower runs first) if rules might overlap.

    Access Rules
  3. Choose the action + condition

    Set the action (Redirect to pricing is common) and require Has Active Subscription.

    Content Restriction
From the manual

This recipe is built from these ArraySubs user-manual guides:

Good to know

Notes & edge cases

URL matching checks the path only (not query strings) and applies to frontend page loads, not wp-admin or REST.
Pattern types: Prefix, Contains, Exact, Regex.
Lower Priority numbers are evaluated first; the first failing rule wins.
Built with

Modules behind this recipe

The ArraySubs modules this setup relies on.

Free + Pro

Member Access

Control who can see, download, and purchase content using flexible rules tied to subscriptions and roles.

Free + Pro

Subscription Products

Create and manage simple or variable subscription products with trials, signup fees, plan logic, and lifecycle behavior.

FAQ

Questions, answered

Yes. Add them to the rule’s Exclusions list (comma-separated paths) and they’re exempt from the restriction.

No. URL rules apply to frontend page loads only — not wp-admin or REST API requests.
Paid Pro plans

Unlock the complete Pro stack

Start on the free-forever core today, then choose a paid Pro plan when you need the advanced Pro feature set.

No credit card required · Annual and lifetime options available