• I recently migrated from a home grown blog engine, and some of my tag slugs had underscores in them and now have dashes.

    The problem is, when someone requests the old URL, such as /tag/two_words, they get a 404 response. First off, why does /tag, which is my tag base ever return a 404 instead of a “no items tagged with that tag” or somesuch? Secondly, where can I go to manually hack in some tag redirects?

    This same thing happens with my category base, /category, when there are no matching results.

Viewing 2 replies - 1 through 2 (of 2 total)
  • To answer the first question, if someone visits yoursite.com/whatever, WordPress does not assume it is a tag/category/etc.. because it could be anything. That is why it shows a 404 and not a ‘no items with that tag’.

    For the other issue, depending on how many tags you have, you could edit your tag slugs, replacing the hyphens with underscores.

    Otherwise, you could add an entry for each one into your .htaccess file.

    Hope that helps.

    “depending on how many tags you have,”

    Script ?

    By the way your sitemap plugin is great, I’m going to keep the link in even.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with tag slugs and 404’ is closed to new replies.