Mobile Redirect
The Mobile Redirect feature in the Medianova Cloud Panel allows for the redirection and caching of content based on the device type (mobile or desktop). This functionality is designed to optimize the delivery of content by providing device-specific responses, ensuring that mobile users receive content tailored for their devices while desktop users are directed to the standard version of the site.
This feature helps improve both performance and user experience by customizing content delivery depending on whether the user is on a mobile or desktop device.
Key Features
Device-Specific Redirection: The Mobile Redirect feature enables you to redirect users based on the device they are using, either a mobile device or a desktop. This ensures that mobile users are directed to a mobile-optimized version of the site, while desktop users continue to access the standard desktop version.
Optimized Mobile Content Delivery: When enabled, mobile-specific content can be cached separately for faster delivery to mobile users. This ensures that mobile users receive a tailored experience, improving load times and performance on mobile devices.
How it works?
Enabling Mobile Redirect: The Mobile Redirect feature can be activated by toggling the setting to On. Once activated, the system will begin redirecting traffic based on device type.
Force User-Agent:
When the Force User-Agent option is set to On, the system automatically adds the query parameter
?mobile=true
to requests from mobile User-Agents. This allows the backend to identify the request as originating from a mobile device.Enabling this setting also ensures that mobile content is cached separately, optimizing delivery and performance for mobile users.
Default Setting: The Force User-Agent option is Off by default. When turned On, it triggers the caching of mobile-specific content and enables faster delivery.
Important: When Force User-Agent is On, the following settings will not be visible:
Mobile Redirect Keep Path
Mobile Redirect Type
Mobile Redirect URL
Additional Settings (Visible only when Force User-Agent is Off): If Force User-Agent is turned Off, the following additional configuration options become available:
Mobile Redirect Keep Path: Determines how the URI path is handled during the redirection process.
Keep: Retains the original URI path when redirecting users to the mobile or desktop version of the site.
Drop: Removes the URI path during redirection. This option is useful if you want to redirect users to a different URL without keeping the original path.
Mobile Redirect Type: Specifies the direction of the redirection:
Desktop to Mobile: Redirects desktop users to the mobile version of the site.
Mobile to Desktop: Redirects mobile users to the desktop version of the site.
Mobile Redirect URL: Defines the URL to which users will be redirected. This is a required field when configuring mobile redirects. You must specify a valid URL for the redirection to function correctly.
Submitting Changes: After configuring the desired settings, click the Submit button to save and apply the changes. This will activate the mobile redirection and caching settings based on your configuration.
How to Configure Mobile Redirect
In the Medianova Cloud Panel, navigate to the CDN Resources section from the left-hand menu.
Select the relevant resource that you want to configure.
Click on the Caching tab to access the caching settings.
Scroll down to the Mobile Redirect section and toggle the setting to On.
If Force User-Agent is set to Off, configure the following options:
Select either Keep or Drop for the Mobile Redirect Keep Path option.
Choose the appropriate Mobile Redirect Type (Desktop to Mobile or Mobile to Desktop).
Enter the Mobile Redirect URL for the target redirection.
Click Submit to apply the changes.
Important Notes
Mobile-Specific Caching: Enabling Force User-Agent will result in separate caching for mobile content, ensuring faster delivery of mobile-optimized resources.
Redirection Control: You have full control over the redirection behavior, including whether to keep or drop the original URI path and whether to redirect mobile or desktop users.
Redirection URL: It is important to specify a valid URL for the Mobile Redirect URL to ensure the redirection works as intended.
By configuring the Mobile Redirect feature, you ensure that users on mobile devices are served optimized content while desktop users are directed to the appropriate version of the site. This helps improve the overall user experience by tailoring content delivery to the device type.
Last updated