WordPress.org

Ready to get started?Download WordPress

Forums

Open Graph Pro
Circular redirect error when blog is in subdirectory (1 post)

  1. Sam_a
    Member
    Posted 2 years ago #

    Hi Martin,

    When the blog home is in a subdirectory, ogp prints

    og:url http://example/blog

    and that gives Facebook a "circular redirect error" as it goes back and forth between /blog (og:url) and /blog/ (WordPress home url).

    You should use home_url('/') instead — it always has the trailing slash.

    best, S

    http://wordpress.org/extend/plugins/ogp/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags