• Resolved kedomingo

    (@kedomingo)


    Can someone explain this to me:

    I was wondering why my canonical URL points to my cloudfront URL. I thought it was Yoast’s SEO plugin so I disabled it. Nothing has changed so I dug deep into the code and got to the function that returns the home URL and hardcoded my site URL there.

    see:
    screenshot

    However, upon checking the code, I was surprised to see that even my hardcoded string got changed as well!

    see:
    screenshot

    What is this sorcery?!?

    How can I undo this? I want the canonical URL to point to my correct site URL because it is affecting my SEO.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Please do not post the same things multiple times. Duplicate topics are deleted when found and your other topic was removed.

    Also I have moved this topic to “How-To and Troubleshooting”

    I was wondering why my canonical URL points to my cloudfront URL.

    What are you using to get your site on Cloudfront?

    Thread Starter kedomingo

    (@kedomingo)

    Please remove. I found the problem. It’s my own fault. I forgot I’ve been buffering wp_head() and replacing all instances of my domain name with the cloudfront url ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress modifying my homepage permalink affecting canonical URL’ is closed to new replies.