rel=”canonical” HTTP header

  • philipperoussel

    Hi,

    I will host several posts published on other websites. How do I implement a rel=”canonical” HTTP header for each of them?

    Thanks for your help,

    Philippe

  • Hi Philippe,

    The rel="canonical" link tag (in the <head>) is the standard approach for this, and it’s handled by your SEO plugin rather than GeneratePress. If you’re using Yoast, Rank Math, or similar, each post will have a “canonical URL” field where you can point to the original source.

    The HTTP header variant (Link: <url>; rel="canonical") is less common and would need to be set at the server level (via .htaccess, Nginx config, or a plugin like Redirection), which is also outside GP’s scope.

    Either way, GeneratePress doesn’t have a role to play here — your SEO plugin is the right tool for the job.

  • philipperoussel

    Hi George,

    To me, these questions are like learning a foreign language. Fortunately, you are a good teacher.

  • Hi Philippe,

    I know what you mean, been there. It’s an ongoing learning process of all of us! Glad I could be of help!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.