The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

410 for WordPress
[resolved] Wildcards (6 posts)

  1. Stu
    Posted 2 years ago #

    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.



  2. Samir Shah
    Plugin Author

    Posted 2 years ago #

    Hi Stu,

    Yes, this should work:


    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.

  3. Stu
    Posted 2 years ago #


  4. jshare
    Posted 2 years ago #

    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:


    And I can see that it works.

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


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

  5. Samir Shah
    Plugin Author

    Posted 2 years ago #

    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:


  6. jshare
    Posted 2 years ago #

    Yes, I see that works now.

    Thank you for the clarification

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • 410 for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.