Forum Moderators: phranque
I have recently switched my blog cms from b2evo to wordpress. I need to redirect the old permalinks to the new format, I can't seem to make it work.
Old permalinks are these 2 formats:
http://example.com/blog/index.php/2005/10/11/POST_TITLE
http://example.com/blog/index.php?title=POST_TITLE&more=1&c=1&tb=1&pb=1
New ones look like this:
http://example.com/blog/post/POST_TITLE
Thanks in advance to anyone willing to help :)
[edited by: jdMorgan at 1:34 am (utc) on Nov. 16, 2005]
[edit reason] example.com [/edit]
to redirect this:
http://example.com/blog/index.php/2005/10/11/POST_TITLE
(2005/10/11 is the date of the post, it could be anything)
into this:
http://example.com/blog/post/POST_TITLE
I've been trying this, with no success:
RewriteEngine on
RewriteRule ^/blog/index.php/([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ /blog/post/$4
.htaccess is placed on root directory.
What are the actual URL-paths required to look up and serve the content for the URLs you posted?
What are the actual URL-paths required to look up and serve the content for the URLs you posted?
I think Jim means the ULRs for your WordPress blog posts before you applied the WordPress permalinks. If you temporarily disable permalinks in WordPress then navigate to a post, you will see a typical actual URL path.
Also, you may need to put the .htaccess file in the blog directory.