Sitemap Redirection error.

#800532
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    I apologize for the issue you are facing with the sitemap redirection on your website. To resolve the redirection problem between www and non-www versions of your website, you can follow these steps:

    1. Check WordPress Address & Site Address Settings:

      • Navigate to Settings → General inside your WordPress admin area.
      • Ensure that both the WordPress Address and Site Address are set to the correct version (www or non-www) of your website.
      • Make sure they are consistent with how you want your website URLs to be displayed.
    2. Adding Redirection Rules to .htaccess File:

    3. Debugging and Testing:

      • After making changes, use tools like the htaccess tester to debug and ensure that the rewrites are correct before adding them to the .htaccess file.
      • Save the changes and then check if the issue has been resolved.

    If the issue persists after following these steps, please feel free to open a support ticket on our support forum, and our support team will assist you further.

    Thank you for bringing this matter to our attention. If you need any more help, please let us know.

    Sources:
    Why Are Posts Redirecting to www or Non-www Incorrectly?
    Analyzing Your Site’s SEO with Rank Math’s SEO Analysis Tool
    How to Redirect Non-WWW Version to WWW Version of Your Website » Rank Math

    Hello,

    Thank you for contacting Rank Math support.

    You should check with your host to redirect the sitemap URL to the WWW version, as they will be in a better position to help you. However, the sitemaps are submitted manually to Google. So, you don’t need to worry about if the redirection is not working for the sitemap URL. You just need to make sure that you submit the https://www.allindiandjsdrive.com/sitemap_index.xml to the sitemap section of your GSC account.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    All links open with www only sitemap is open both URL. I already discuss with Hosting Provider.

    Hello,

    Rank Math’s redirection module does not handle the redirection between non-www to www or vice versa. Usually implementing the following code snippet in your .htaccess file should redirect all non-www variants of your site to www URLs:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^example.com [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

    You can refer to this guide: https://rankmath.com/kb/how-to-redirect-non-www-urls-to-www/

    However, we can confirm that your URLs without www redirect to the www version. For this reason, your host provider will be in the best position to help you with this redirection.

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Okay. Thank You.

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

You must be logged in to reply to this ticket.