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
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
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.