Forum Replies Created

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thanks again, @theguitarlesson . Your guide is proving to be very useful!

    Thank you, @theguitarlesson, for writing up your experience and lessons learned. I had intended to make my switch to SSL right after the start of the year. However, it has been delayed. I’m getting ready to do it now. So it’s really nice to read how it went for you and how you resolved issues along the way.

    Just to be clear, though, with respect to Facebook’s instructions ( https://developers.facebook.com/docs/sharing/webmasters/crawler#updating ), it will work if you follow the two steps to the letter, right?

    1. Exempt the Facebook crawler from your HTTP redirect
    — It looks like you’ve done this. Also, this requires you to keep every old URL alive with a page or post with og:url tag pointing to itself.

    2. Use the old page as the canonical URL for the new page
    — In this case, the page or post at each new URL must include an og:url tag that points to the corresponding old URL.

    According to Facebook, following these two steps should result in the share count at the new URL reflecting the combined share totals from both the old and new. Is that what finally ended up working for you?

    What’s the preferred method for adding all of these og:url tags? Clearly, only 301 redirected posts/pages will need to have the old/new pairs of og:url tags. New posts/pages won’t need them. So it looks to me like each pair of redirected posts/pages will need to have custom, individual og:url tags inserted.

    Thanks again for the great article!

    • This reply was modified 9 years, 2 months ago by Steven.
    Thread Starter Steven

    (@cuenca)

    Thank you, Jeremy. I’ve changed button style to icon+text and it’s much better now. Thanks again!

    Thanks, Jeremy. I was planning to put the redirection into .htaccess directly. The info at the stackoverflow link looks promising. Thanks for the pointer to it.

    Thanks, Jeremy. BTW, I’m not trying to hijack this topic instead of starting a new one. I’m just trying to see if we can figure out how to follow the Facebook documentation at the link you provided above to successfully implement that solution for preserving social share counts in WordPress when we have 301 redirects.

    That Facebook documentation says that I have to both exempt the Facebook crawler from the 301 redirect and include og:url tags in both the old and new pages. The way I am reading it, both the old page and new page must include:
    <meta property=”og:url” content=”https://example.com/old-url&#8221; />
    AND the 301 redirect for the old page must exempt the old page so that the old page may be successfully accessed.

    So I still need to learn how to exempt the Facebook crawler from the 301 redirects. Do you have any idea how to do that?

    For the old pages, I believe I could follow your suggestion to properly use the Jetpack Open Graph Meta Tags for the og:url tag. For the new pages (posts), however, I will only have corresponding old pages for those coming from the 301 redirects. I’m not sure how I could add the URL for the old page into an og:url tag only into the set of pages (posts) that are the destinations of the 301 redirects without having to insert the og:url tags individually somehow. In other words, pages (posts) imported into the main site’s WordPress installation would be the only ones needing this og:url tag that points to an old URL.

    Thank you for this information and for the link to the Facebook documentation. Could you show an example of how to write the instruction in .htaccess to exempt the Facebook crawler from a 301 direct? I’ve not found a way to do this properly.

    The Facebook solution also calls for using og:url tags in the old and new pages. What’s the best way to implement this in WordPress?

    In my case, rather than having URL changes because of a switch to SSL, I want to combine two WordPress installations One is in a subdomain. I want to import the blog posts from the subdomain into the main site’s WordPress installation, eliminate the subdomain, and use the 301 redirects to point to the new URLS for the posts moved out of the subdomain. I eventually also would like to go to SSL but am not ready to do that yet.

    Thanks!

    Thread Starter Steven

    (@cuenca)

    esmi,

    Thanks. Maybe I’m missing something, but I’ve read that article before and don’t see the answer to my question there.

    I guess I should point out that I still want the blog to remain at http://blog.mydomain.com/ . I don’t see how to leave the blog in the sub-domain and have the pages NOT be in the sub-domain. How would I accomplish that?

    Thread Starter Steven

    (@cuenca)

    I was away for eight hours and came back to find no reply, but the problem has gone away. I’m happy that the problem’s gone, but would have liked to understand what was causing it.

    Thread Starter Steven

    (@cuenca)

    Thanks! I’ll give this a try.

Viewing 9 replies - 16 through 24 (of 24 total)