WordPress.org

Ready to get started?Download WordPress

Forums

Redirect URLs containing /? (question mark) (4 posts)

  1. Miroslav
    Member
    Posted 5 years ago #

    I see some sites linking to my blog as such:

    http://www.blog.com/?something

    The blog is returning a 200 OK response on these (permalinks enabled), which effectively creates a duplicate content problem for me.

    I'm not a techie, but would like to redirect/rewrite such URLs to their respective version without ?something.

    Anybody willing/able to help? Thanks in advance! :)

  2. Miroslav
    Member
    Posted 5 years ago #

    I am guessing WP has a built-in redirect prevention for this as not to accidentally make all the wp-login.php pages (register, logout, forgot password) unavailable.

    If so, is there any way around this?

  3. Miroslav
    Member
    Posted 5 years ago #

    Anyone?

  4. Miroslav
    Member
    Posted 5 years ago #

    OK, I see nobody replied. Here's what I put in my robots.txt file:

    User-agent: *
    Disallow: /*?

    It seems to be working. Can anybody comment?

Topic Closed

This topic has been closed to new replies.

About this Topic