Support » Plugin: 410 for WordPress » Wildcards

  • Resolved Stu

    (@dblinks)


    After having a large site re-built that previously was not on WordPress, I’m finding it hard to specify wildcards for entire folders, and those that also have sub-folders. Is this possible?

    i.e. domain.com/city_home/images/image.jpg

    Can I get rid of /city_home/ and all of it’s content/sub-folder/content ???

    Thanks, this plugin is otherwise fantastic for Google Webmaster tools issues.

    stu

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Samir Shah

    (@solarissmoke)

    Hi Stu,

    Yes, this should work:

    http://domain.com/city_home/*

    Just make sure you include the http:// portion. Also you need to make sure that the city_home directory doesn’t actually exist on your server.

    Thanks!

    There still seems to be a small bug here, at least with WordPress 3.8 with v.0.8.3.

    Based on this support ticket, I created a wildcard like this a few days ago:

    http://mydomain.com/category/test/*

    And I can see that it works.

    But then this showed up in the Recent 404 errors this morning:

    http://mydomain.com/category/test

    Even though, when I try that url manually, it is getting 410’ed correctly according to the wildcard above.

    Plugin Author Samir Shah

    (@solarissmoke)

    The URL you tried will not match the rule because the rule has a slash before the *, and the URL you tested doesn’t. The reason it seems to work when you try it manually is probably because your browser has a cached redirect to the slashed version of the URL.

    If you want to match that URL, then you need to change the rule to:

    http://mydomain.com/category/test*

    Yes, I see that works now.

    Thank you for the clarification

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Wildcards’ is closed to new replies.