VergeCloud Page Rules for Fast and Secure Websites

VergeCloud Page Rules: A Practical Guide to Fine-Tuning Your Site

VergeCloud Page Rules allow you to customize and fine-tune how your domain behaves within the VergeCloud secure CDN ecosystem. They give you granular control over performance, security, caching, redirects, and request handling at the edge. Instead of applying broad, domain-wide settings, Page Rules let you define specific behavior for individual URLs, directories, patterns, or parameters.

With Page Rules, you can improve load times by controlling how content is cached, enforce secure redirects without touching your origin, optimize media files automatically, manage device-specific experiences, and override origin headers when needed. They are especially useful for delivering dynamic websites, e-commerce storefronts, API endpoints, and high-traffic applications where precision and performance matter.

Because Page Rules execute at VergeCloud’s global edge network, changes take effect instantly and do not require modifications to your backend or codebase. This ensures faster deployments, reduced origin load, and consistent behavior across all regions.

How Page Rule Priorities Work

Configure Page Rules in VergeCloud

Page Rules run in order from top to bottom. Only the first matching rule is applied to any request. To avoid misconfigurations:
  1. Place high-priority rules at the top
  2. Combine related actions into a single rule where possible
  3. Use accurate and specific URL patterns for precision

Managing Page Rules in VergeCloud

Redirect Users Effortlessly with 301 and 302 Rules

Forward users from one page to another using 301 or 302 redirects without modifying your origin.

Key Options

  1. URL Pattern
  2. Redirect Target
  3. Redirect Type

Steps

  1. Open Page Rules
  2. Select Redirect
  3. Enter the pattern, target URL, and type
  4. Save

Optimize Site Speed with VergeCloud Cache Settings

Control how VergeCloud manages your domain’s content with advanced caching solutions. Configure cache levels, expiration times, device-specific caching, and more to reduce latency and offload traffic from your origin.

Key Options

  1. URL Pattern
  2. Cache Level
  3. Cache Max Age
  4. Cookie-Based Caching
  5. Special Querystrings
  6. Cache Error Pages
  7. Ignore Vary Header
  8. Cache Page with Set-Cookie

Steps - Caching on VergeCloud: A Step-by-Step Guide to Faster Content Delivery

  1. Open Page Rules in the VergeCloud panel
  2. Create a new rule and enter the URL pattern
  3. Configure cache settings
  4. Save the rule

Speed Up Your Site with Browser Cache Settings

Define how long browsers should store static assets to improve repeat load times.

Key Options

  1. URL Pattern
  2. Browser Cache TTL

Steps

  1. Create a new rule
  2. Select Browser Cache
  3. Set the TTL value
  4. Save

Respect Your Server’s Cache with Origin Cache Control

Allow VergeCloud to honor cache headers defined by your origin server.

Key Options

  • URL Pattern

Steps

  1. Open Page Rules
  2. Select Origin Cache Control
  3. Enter the URL pattern
  4. Save

Prevent Delays with Custom Timeout Settings

Customize connection, read, and write timeouts between the VergeCloud edge and your origin to avoid unnecessary delays.

Key Options

  1. Connection Timeout
  2. Read Timeout
  3. Write Timeout

Steps

  1. Create a new rule
  2. Select Timeout Settings
  3. Enter timeout values
  4. Save

Send Traffic to Load Balancer – Ensure High Availability with VergeCloud Load Balancing

Route specific URLs to a pre-configured load balancer to ensure high availability using VergeCloud’s multi-cloud load balancing solution.

Key Options
  1. URL Pattern
  2. Load Balancer
Steps
  1. Create a rule.
  2. Choose Send Traffic to Load Balancer.
  3. Select the load balancer.
  4. Click Save.

Ignore User Response Header

Override origin response headers with VergeCloud-defined settings.

Key Options

  • URL Pattern

Steps

  1. Create a rule
  2. Select Ignore User Response Header
  3. Save

Custom Host Header

Send a custom Host header to your origin server for selected URLs.

Steps

  1. Create a rule
  2. Select Custom Host Header
  3. Enter the header value
  4. Save

Cache by Device Type

Create separate cache buckets for desktop, tablet, and mobile users.

Steps

  1. Open Page Rules
  2. Enter the URL pattern
  3. Enable Cache by Device Type
  4. Save

Protect your content with a secure link using token-based authentication.

Key Options

  1. URL Pattern
  2. Token Validation Endpoint
  3. Expiration Time

Steps - Create Secure Links easily with VergeCloud

  1. Create a rule
  2. Enter the URL pattern
  3. Add token validation and expiry settings
  4. Save

Supercharge Your Site with Web Boost 

By using webpage boost, CSS, JS, and images are automatically optimized to deliver faster and smoother site performance.

Key Options

  1. URL Pattern
  2. Optimization Level

Steps - Boost Web Pages Instantly with Verge Cloud

  1. Create a rule
  2. Select Web Boost
  3. Set the optimization level
  4. Save

Resize Images Automatically for Perfect Fit

Automatically adjust images to user-defined dimensions using VergeCloud’s image resize service.

Key Options

  1. URL Pattern
  2. Width / Height
  3. Resolution

Steps

  1. Create a rule
  2. Select Image Resize
  3. Configure dimensions
  4. Save

Origin Request Headers

Add or modify request headers sent to the origin server.

Steps

  1. Create a rule
  2. Select Origin Request Headers
  3. Add key-value headers
  4. Save

Rewrite URLs Seamlessly Behind the Scenes

Internally rewrite request paths without changing the visible URL.

Steps

  1. Create a rule
  2. Select URL Rewrite
  3. Enter the pattern and target path
  4. Save

Considerations

Rule Priority
Only the highest matching rule applies. Place specific rules above general ones.

URL Patterns
VergeCloud Page Rules use Glob patterns (example: https://example.com/assets/*).

Cache Behavior
HTML is not cached unless explicitly configured. Origin cache-control headers may override VergeCloud settings.

Device-Based Caching
Ensure device-specific content is optimized correctly.

Redirects
Use 301 for permanent moves and 302 for temporary ones.

Timeout Configuration
Set appropriate timeout values to avoid latency or disconnects.

Image Resizing
Ensure original images have sufficient resolution.

Secure Links
Choose suitable token expiry and validation endpoints.

Web Boost
Always test optimizations to avoid script or layout issues.

Custom Headers
Avoid conflicts with browser or server-defined headers.

Load Balancer Routing
Ensure load balancers are healthy and correctly configured.

Manage Page Rules Effortlessly via API

You can automate Page Rule management using VergeCloud’s complete API collection. List, create, update, delete, toggle, and manage exceptions for Page Rules directly through the API.

  1. Use curl or browser developer tools to inspect headers
  2. Use dig for DNS validation
  3. Test redirects, caching behavior, images, and URL rewrites thoroughly

With VergeCloud Page Rules, you can fine-tune every aspect of your website’s performance, security, and user experience effortlessly. And if you ever need assistance, VergeCloud offers reliable 24/7 cloud support, ensuring your configurations are optimized and any issues are resolved quickly, so your site stays fast, secure, and highly available at all times.


    • Related Articles

    • VergeCloud DDoS Mitigation: A Practical How-To Guide

      VergeCloud’s advanced DDoS mitigation ensures that your website remains secure from malicious or abusive traffic while maintaining a seamless, interruption-free experience for legitimate users. Using multi-layer filtering, intelligent traffic ...
    • VergeCloud Firewall: A Step-by-Step Configuration Guide

      The VergeCloud Firewall provides granular control over the HTTP(S) traffic flowing to your website or application. Serving as an intelligent security layer at the edge, it allows you to filter requests, protect critical endpoints, block malicious ...
    • Known Crawler Whitelisting in VergeCloud

      Overview Automated bots often referred to as crawlers or spiders are programs that systematically browse the web. Search engines, analytics platforms, AI services, and other online tools rely on these bots to index content, collect website ...
    • Caching on VergeCloud: A Step-by-Step Guide to Faster Content Delivery

      Caching plays a crucial role in improving website performance by temporarily storing web content so it can be delivered faster and with less strain on your origin server. When caching is enabled through VergeCloud’s next-gen CDN, your content is ...
    • Steps to Activate Cloud Icon for VergeCloud

      Overview Before you activate the Cloud icon for your domain in VergeCloud, it’s important to make sure your server and DNS setup are fully prepared to work with the platform. Turning on the Cloud icon changes the way traffic reaches your website, ...