Fixing Redirect Issues on Frontend

Why doesn't redirect function on the frontend?

This guide outlines key areas to examine to ensure your redirects operate smoothly.

1. Verify Redirects with GET Parameters

Firstly, it is essential to verify whether redirects function when using a GET parameter. This check helps to rule out the influence of caching on the module's operation. To do this:
  1. Open the page for which the redirect is configured.
  2. Append a GET parameter to the URL, such as ?testredirect (e.g., http://domain.com?testredirect). You can use any text after the question mark to trigger the GET parameter.
If redirect works using the GET parameter, it defines that caches affect the module behavior and further configuration is required on the server side.

2. Check Geo IP Data Import

Ensure that the Geo IP data is imported correctly in Amasty > Geo Ip Data > Configuration. When clicking the "Download and Import" button, the system should display the message: "Geo IP data is up-to-date." This confirms that the necessary data is present for location-based redirects.




3. Ensure Redirects for Specific Countries

Check your store views to ensure redirects are appropriately set up for specific countries. It is necessary to switch to the relevant store view to verify that the redirect settings correspond to the intended countries within the Affected Countries field.



4. Check Force IP Settings

If a client reports that redirects, despite being configured for different URLs, always lead to the same website, it is important to examine whether an IP address has been added that "tricks" the module. These settings are located in:



To verify an IP's association with a specific country, you can use the IP lookup tools.

5. Add Store Codes to URLs

For the Geo Ip Redirect module to function correctly, store codes must be enabled in the website's URL. To activate this setting:
  1. Navigate to Stores > Configuration > General > Web > URL Options
  2. Enable "Add Store Codes to URLs"




By following this checklist, you may ensure that your website's redirects are configured and functioning as intended. If issues persist after these checks, consider contacting our support team for further investigation. 

      • Related Articles

      • How to remove GET parameters from Redirect URLs?

        Since v.1.6.0 of the module, we have added the ability to exclude GET parameters from Redirect URLs. Please note that the Exclude GET Parameters from Redirect URL feature is available only as a part of an active product or support subscription. You ...
      • How to redirect customers to external resources from a website?

        Before you proceed to configure the settings of the extensions, make sure that you have downloaded and imported the Geo IP Data. For that, please open Magento Admin Panel → Stores → Configuration → Geo IP Data → Configuration, click the Download and ...
      • Is the Geo IP Redirect module compatible with Varnish?

        Starting from version 1.7.0, the Geo IP Redirect extension does work with Varnish cache, but requires a few changes in the web server configuration for that. Please contact your hosting provider on this matter or follow the steps below. Step 1. Open ...
      • How does the Geo IP Redirect module work with Cloudflare?

        There is a known issue with using the Geo IP Redirect module with Cloudflare. It occurs due to the actual IP address of a customer being replaced by the proxy IP. To introduce compatibility between Cloudflare and the Geo IP Redirect module, follow ...
      • What is the difference between Geo IP Redirect and Store Switcher?

        Geo IP Redirect and Store Switcher are the two names of the same Amasty extension, they deliver identical functionality. Several product pages have been created to reveal the functionality of the module from different angles.