Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Add this to wp-config.php above the “stop editing” line:

    define('WP_HOME','https://www.valledelleferle.it'); define('WP_SITEURL','https://www.valledelleferle.it');

    Save and reload the site!

    • This reply was modified 9 months, 2 weeks ago by Kusum Rs.

    Hello, Rename the plugin folder via FTP or File Manager:
    /wp-content/plugins/your-plugin → your-plugin-disabled
    This deactivates it and restores your site. Then enable wp_debug in wp-config.php to find and fix the error before re-uploading. I’ve faced the same error and this worked for me.

    Hello,

    Rename the plugin folder via FTP or File Manager:
    /wp-content/plugins/your-plugin → your-plugin-disabled
    This deactivates it and restores your site. Then enable wp_debug in wp-config.php to find and fix the error accordingly before reuploading. I’ve faced the same error and this worked for me.

    Problem 1: Canonical URL shows the wrong Hostinger domain

    Why does this happen?
    The canonical tag in WordPress uses the values from home_url() and site_url(). If the canonical URL field in Rank Math is grayed out, it means that Auto Canonical is turned on and Rank Math is using the default settings from WordPress.

    Solution

    1. Update WordPress settings
      Go to Settings → General → WordPress Address and Site Address. Make sure both are set to https://ABC.com.
    2. Update the database
      The old Hostinger domain (XXX.hostingersite.com) may still be present in the database. Use the Better Search Replace plugin. Search for XXX.hostingersite.com and replace it with ABC.com. Run this on all tables, but perform a dry run first to check for any issues.
    3. Force canonical override in Rank Math
      On the page edit screen, open Rank Math, go to the Advanced tab, and locate the Canonical URL setting. Turn off Auto Canonical and enter the correct URL, for example: https://ABC.com/page-name.
    4. If Auto Canonical is grayed out
      Go to Rank Math → Titles & Meta → Posts and disable the Auto Canonical option.

    Following these steps ensures that both WordPress and Rank Math use the correct domain for canonical URLs.

    Problem 2: Canonical resets after editing in Rank Math

    Why does this happen?
    If Rank Math Auto Canonical is turned on, Elementor may re-save the post meta during edits, which can remove custom canonical URLs. There can also be conflicts if Rank Math Instant Indexing or SEO filters overwrite the settings.

    Solution

    1. Turn off Elementor dynamic tags for SEO
      Do not allow Elementor to handle SEO. Instead, let Rank Math manage it.
    2. Disable Default SEO Meta in Elementor
      Go to Elementor > Settings > Advanced and turn off the option for default SEO meta.
    3. Clear Elementor cache
      Go to Elementor > Tools and click on Regenerate CSS & Data.

    Following these steps ensures Elementor does not interfere with custom canonical URLs managed by Rank Math.

    Problem 3: Why do Elementor hyperlinks go back to the Hostinger domain?

    Why does this happen?
    Elementor stores absolute URLs in a serialized format within the database. If some widgets still point to the old Hostinger domain, it means the previous URL replacement did not update all instances.

    Solution

    1. Use Elementor’s URL Replacement tool
      Go to Elementor > Tools > Replace URL.
      From: https://XXX.hostingersite.com
      To: https://ABC.com
      Run the process again to ensure all URLs are updated.
    2. Clear caches
      Clear the Elementor cache, the Hostinger cache, and your browser cache.
    3. If the issue persists
      Use the Better Search Replace plugin on the database to update any remaining references to the old domain.

    For what reason is Canonical grayed out?
    Because Rank Math uses WordPress home_url() to automatically generate the canonical tag. To edit it manually, you need to turn off Auto Canonical in Rank Math settings.

    Does Canonical get overwritten by Elementor?
    No, Elementor itself does not overwrite canonical URLs. However, it can cause conflicts with SEO plugins by re-saving post meta fields when updates are made.

    Is it possible that the Hostinger subdomain is stored elsewhere?
    Yes, it can be stored in multiple places:

    • In the database (tables like wp_options, wp_posts, wp_postmeta)
    • In Elementor templates
    • In serialized widget data

    To completely clean up old URLs, use the Better Search Replace plugin and update all occurrences, including Rank Math meta fields.

Viewing 4 replies - 1 through 4 (of 4 total)