WordPress.org

Ready to get started?Download WordPress

Forums

rewrite two redirects (2 posts)

  1. zszalbot
    Member
    Posted 5 years ago #

    Hello,

    I made a mistake of not being careful about my permalinks structure. So at first I had something like:
    /%year%/%monthnum%/%postname%/

    Then I decided to change it into:
    /%category%/%post_id%/%postname%/

    Now I want to change it into something final like this:
    /%category%/%postname%-%post_id%.html

    I can easily do that and it rewrites fine from the existing
    /%category%/%post_id%/%postname%/

    However, it does not want to rewrite the very first permlink I used to use - /%year%/%monthnum%/%postname%/

    My question is how can I take care of both permalink structures? Is it at all possible?

    Thank you very much in advance!

    Zbigniew Szalbot

  2. zszalbot
    Member
    Posted 5 years ago #

    I forgot to add that my .htaccess file looks pretty standard

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Many thanks in advance for any help!

Topic Closed

This topic has been closed to new replies.

About this Topic