Why doesn't redirect function on the 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 GeoIP Data Import

Ensure that the GeoIP data is imported correctly in Amasty > Geoip Data > Configuration. When clicking the "Download and Import" button, the system should display the message: "GeoIP 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 Geoip 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 ...
      • What is the difference between GeoIP Redirect and Store Switcher?

        GeoIP 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.
      • 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 GeoIP Data. For that, please open Magento Admin Panel → Stores → Configuration → GeoIP Data → Configuration, click the Download and ...
      • Is the GeoIP Redirect module compatible with Varnish?

        Starting from version 1.3.10, the GeoIP Redirect extension does work with Varnish cache, but requires a few changes in the web server configuration for that: 1. For nginx - add the following code in any place of the nginx.conf file: set_real_ip_from ...
      • How does the GeoIP Redirect module work with Cloudflare?

        There is a known issue with using the GeoIP 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 GeoIP Redirect module, follow the ...