WordPress.org

Ready to get started?Download WordPress

Forums

410 for WordPress
[resolved] Wildcards (6 posts)

  1. Stu
    Member
    Posted 7 months 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.

    stu

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

  2. solarissmoke
    Member
    Plugin Author

    Posted 7 months ago #

    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.

  3. Stu
    Member
    Posted 7 months ago #

    Thanks!

  4. jshare
    Member
    Posted 3 months 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:

    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.

  5. solarissmoke
    Member
    Plugin Author

    Posted 3 months 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:

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

  6. jshare
    Member
    Posted 3 months ago #

    Yes, I see that works now.

    Thank you for the clarification

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.