WordPress.org

Ready to get started?Download WordPress

Forums

Changing from numeric permalinks to custom (4 posts)

  1. rebelguru
    Member
    Posted 3 years ago #

    I'm trying to change my site's permalink structure from:

    /archives/%post_id%

    to

    /%postname%/

    Changing it in WP admin is easy, however I'm trying to modify the htaccess so as not to affect our SEO and break older links. I've found tons of examples how to do this with all other permalink structures except this one.

    Here's the weird thing. I got it working by adding 1 redirect, however when i add more it breaks the entire site.

    Current htaccess:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^archives/2374$ http://www.g33kpron.com/twitter-infographic$ [R=301,L]
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    This will work, but the moment I add more entries after that one, it breaks everything.

    Any ideas?

  2. govpatel
    Member
    Posted 3 years ago #

    have tried a redirect plugin i am sure there is around

  3. rebelguru
    Member
    Posted 3 years ago #

    I've tried 5-6 of them and none could work.

  4. This is a duplicate - I've replied to your other post here:

    http://wordpress.org/support/topic/proper-301-redirect-in-htaccess?replies=8#post-2149946

Topic Closed

This topic has been closed to new replies.

About this Topic