Forums

Need expert help with 301 (5 posts)

  1. qbano
    Member
    Posted 2 years ago #

    Team i want to redirect posts in a blog to a different permalink. I downloaded a plug in but it is line by line. Is there a easier way?

    Example

    from:

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

    To:

    /%postname%.html

    I change my permalinks about 5 months ago but I did not know that I had 10k links to urls with /%year%/%monthnum%/%day%/%postname%/. I just dont want to loose that.

    Thanks!

    Jose

  2. qbano
    Member
    Posted 2 years ago #

    Any experts?

  3. carlosmendoza
    Member
    Posted 2 years ago #

    I used the redirection plugin to manage the redirects in a similar change in permalinks.

    Give it a try

  4. Shane G.
    Member
    Posted 2 years ago #

    Hi,

    You can set the 301 redirects from this code:

    Redirect 301 /old/oldpage.htm /new/http://www.domain.com/newpage.htm

    As you have changed the URL, you can try to add this code in htaccess and have a check with old and new posts:

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

    Thanks,

    Shane G.

  5. qbano
    Member
    Posted 2 years ago #

    thank you guys!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags