WordPress.org

Ready to get started?Download WordPress

Forums

410 for WordPress
[resolved] Strange Observation with Wildcard (3 posts)

  1. anefarious1
    Member
    Posted 7 months ago #

    I have used the wildcard option like so:

    http://canigivemydog.com/*

    Then if I type into my browser, http://canigivemydog.com/x it returns the default 410 with a white screen stating, "Sorry, the page you requested has been permanently removed." That's fine.

    However, this is only because I don't have a post slug beginning with x. If I type in http://canigivemydog.com/z it takes me to http://canigivemydog.com/zantac

    Any idea why that is? It is almost like AI :)
    I'm trying to figure out if that is a good thing. Basically, I want to do what Google thinks is best.

    There are no discontinued urls for my site but bots seem to create random urls which I kept adding manually (pain in the neck). Am I using the wildcard wrong? I don't have any url structure except http://thedomain/slug-example
    Thanks!

    http://wordpress.org/plugins/wp-410/

  2. solarissmoke
    Member
    Plugin Author

    Posted 7 months ago #

    Hi,

    This is a "feature" of WordPress - when a page is requested that doesn't match anything, it searches the database for pages that have a similar URL, and if it finds one, it redirects to that page. I don't think it's a major issue and you can let it do that.

    There are no discontinued urls for my site but bots seem to create random urls which I kept adding manually (pain in the neck).

    In that case, you shouldn't be using this plugin ;). The correct response for random URLs that never existed is 404 (what WordPress does by default). 410 explicitly says "there used to be something here, but it's gone now".

  3. anefarious1
    Member
    Posted 7 months ago #

    Very good info. Thanks

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.