Forums

mod_rewrite and permalinks question... (1 post)

  1. DreamKeeper
    Member
    Posted 5 years ago #

    Hi all...

    I'm a newbie to using mod_rewrite and have a few questions for those of you who know how to use it.

    I have been using WordPress for several months and have a couple hundred posts in my database. When I originally set my blog up I decided to use this permalink structure:

    /%year%/%monthnum%/%day%/%postname%/

    But for various reasons I've now decided that this permalink structure would work better for me:

    /%post_id%/%postname%/

    The problem I have is that I have several hunred posts that have been indexed in the search engines with the /%year%/%monthnum%/%day%/%postname%/ structure. If I update my permalink structure to /%post_id%/%postname%/ is there anyway that I can put something in mod_rewrite that will redirect all the links coming to my site from the search engines to the new permalink structure? I was hoping there would be a way to do this with a couple lines of code since I have several hundred posts that will need to be redirected.

    I hope I'm making sense :-)

    Thanks in advance for your help...

Topic Closed

This topic has been closed to new replies.

About this Topic