Forums

Need to drop first two characters from url (3 posts)

  1. PdxFoodDude
    Member
    Posted 4 months ago #

    My blog has been around since 2005, and at this point I'm having an issue with permalinks. At some point, I changed them - probably a few years ago, and now I'm noticing a ton of 404 errors.

    I'm currently using %postname%, but there are lots of links out there that, for an unknown reason, didn't have the %monthnum% from the old /%year%/%monthnum%/%postname%/ stripped off when the permalinks were changed.

    Now I've either got to do hundreds of redirects, or come up with a way to strip those old month digits off with .htaccess if they are present. If anyone could tell me how to do this, I would be very appreciative.

  2. Peter Shilling
    Member
    Posted 4 months ago #

    I think you could probably achieve a fix using mod rewrite and htaccess but I'm not sure exactly how to do it, sorry.

    That might put you on the right track though...

    Peter

  3. PdxFoodDude
    Member
    Posted 4 months ago #

    That's what I'm thinking. Unfortunately my knowledge of mod rewrite is nill.
    Thanks for responding. Anyone else?

Reply

You must log in to post.

About this Topic