Forum Moderators: phranque

Message Too Old, No Replies

Redirecting blog permalinks (switched CMS)

mod rewrite, i suppose...

         

Mayachan

8:42 pm on Nov 15, 2005 (gmt 0)

10+ Year Member



Hi everybody :) After solving a bunch of problems I've had with my poor webmaster pseudo-career thanks to this message board, I finally registered because...

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]

jdMorgan

12:38 am on Nov 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Mayachan,

Welcome to WebmasterWorld!

What are the actual URL-paths required to look up and serve the content for the URLs you posted?

Please post whatever code you've tried, so we can start from there.

Jim

Mayachan

1:13 pm on Nov 26, 2005 (gmt 0)

10+ Year Member



Thanks for your reply :)

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

nothing happens, the old url is not redirected. No error, nothing, just the old url.

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

sorry, I didn't understand your question :( english is not my mother language and I'm totally new to this kind of things. Could you explain me your question like you would to a 10yrs old?

Patrick Taylor

2:04 pm on Nov 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.