Subdomain cannot pass WWW Canonicalization

  • Hi, my subdomain site design.weblai.co cannot pass ” WWW Canonicalization “.

    It shows:
    The www and non-www versions of your URL are not redirected to the same site.

    Have read and done solution in this article ( via editing .htaccess )

    Could you please check it out for me? Thanks!

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

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I think we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    When you enable the .htaccess rules you shared you get an issue saying the SSL certificate is not valid for the www version of your domain.

    The easy way is to add an SSL certificate for that www subdomain but since you are using Cloudflare, you will need to add that sub-sub domain to the DNS panel so Cloudflare generates the same SSL certificate for it and you don’t get the current issue.

    Looking forward to help you.

    My Cloudflare DNS record is like that.

    Is that right?

    Hi,

    The www.design value needs to be a CNAME records instead of a A record:

    Checking your www.design variation, I do not see it redirected to the non www version.

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

    I have changed A record to CNAME record, Thanks.

    But still same.

    Hello,

    That’s because the redirect is still not in place and you may have to add an SSL to that sub-domain as well:

    It should redirect to the non-www version so please check with your web host as they will be in a better position to help with this.

    Since Rank Math only reports these server related issues, our assistance in this regard is going to be limited since these need to be fixed by your host.

    With that said, if you cannot fix this – you can ignore the warning as long as none of your www variant is not indexed by Google and no one is using it to access your website.

    • This reply was modified 1 week, 6 days ago by Uzair. Reason: fixed typo

    I see, so every time when I create a subdomain site, I should add a CNAME record and a A record?

    Hello,

    If you want to add the subdomain, let’s say, test, you will need to add these records:

    • An A record pointing to the server IP with test in the Name field.
    • A CNAME record pointing to the test subdomain and with www.test in the Name field

    Hope it helps you.

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

You must be logged in to reply to this ticket.