Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other .htaccess and changing permalinks

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45192
    jasonc
    Member

    I have a client WP website which has the following permalink structure: /%year%/%monthnum%/%postname%.html

    The .html suffix is there to insure compatibility for a Blogger to WP redirection plugin which has outlived its usefulness. I want to now change the permalink structure to just %postname%.

    But I want to avoid creating thousands of 404 errors for existing internal and external links. What is the best way to modify my htaccess? I’m not sure if this requires a regular expression redirect or a rewrite rule. I’m an .htaccess novice and would really appreciate some steering in the right direction.

    #136981
    TheDoc
    Member

    Ouch, that’ll be a tough one. I imagine if it’s happening to *all* posts that there is some sort of simple 301 redirect plugin out there.

    #136987
    jasonc
    Member

    I found this plugin: http://wordpress.org/plugins/change-permalink-helper/
    But I’d rather do this with htaccess instead as I’m thinking that ought to be faster.

    #136988
    jasonc
    Member

    Actually, I just found a handy tool for this on Yoast’s site here: http://yoast.com/change-wordpress-permalink-structure/

    #136997
    jasonc
    Member

    The Yoast solution worked!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Other’ is closed to new topics and replies.