• 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter qbano

    (@qbano)

    Any experts?

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

    Give it a try

    Hi,

    You can set the 301 redirects from this code:

    Redirect 301 /old/oldpage.htm /new/https://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.

    Thread Starter qbano

    (@qbano)

    thank you guys!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Need expert help with 301’ is closed to new replies.