Rewrite Origin URLs
The Rewrite Origin URLs feature enables precise control over how dynamic requests are routed to the origin server. By defining flexible rewrite rules, you can seamlessly map public-facing URLs to complex backend structures, ensuring efficient content delivery for frequently changing or user-specific resources.
Key Features
Match Mode Options: Define dynamic matching criteria to identify URL patterns that require rewriting. Supports regular expressions and parameter-based matching for complex routing scenarios.
Dynamic Origin URI: Specify dynamic or user-specific URIs that trigger the rewrite rules, ensuring accurate routing for content generated in real time.
Target URI: Set the destination URIs to which requests will be rewritten. Supports placeholders and query string management for personalized and API-driven content.
Priority-Based Execution: Assign priorities to rewrite rules to ensure correct execution order, especially when multiple rules overlap.
Key Benefits
Optimized Content Routing: Ensures real-time requests are directed to the correct origin endpoints, even when public-facing URLs differ from backend paths.
Improved Backend Integration: Allows seamless integration with origin servers that use dynamic or customized URL structures.
Enhanced Flexibility: Supports complex URL rewrites using regular expressions and query string management for APIs, dynamic resources, or personalized content.
Reduced Latency: Enables direct mapping of public URLs to backend resources, reducing processing time and improving overall response speed.
Scalable Personalization: Dynamically adapts routing for user-specific requests, ensuring accurate delivery of tailored content without exposing backend complexities.
How to Configure Rewrite Origin URLs
Click on the CDN Resources section in the left-hand menu of the Cloud panel.
Select the relevant resource.
Click on the Origin Settings tab.
Navigate to the Rewrite Origin URLs section in the Medianova Cloud Panel.
Click the Add button to open the configuration popup.
Fill in the required fields:
Match Mode: Choose from the following options:
All files
: Apply the rule to all files.Path
: Match a specific path.Full Path
: Match the exact full path of the URL.Wildcard
: Use wildcards for broader matching patterns.
Origin URI: Enter the URI that should be rewritten.
Target URI: Provide the URI where requests should be redirected.
Priority: Assign a priority to this rule to determine its execution order when multiple rules are defined.
Click the Add button.
Click the Submit button.
Last updated