Forum Moderators: phranque

Message Too Old, No Replies

Challenge: mod_rewrite wordpress to serendipity

wordpress

         

devnet

7:37 pm on May 26, 2006 (gmt 0)

10+ Year Member



I transferred my blog from wordpress to serendipity. Having never had to mess with mod_rewrite before, I need some help. I've been blogging with wordpress and static html pages since 2004. With entries every single day, you can imagine the amount of stuff I have.

The problem is as follows...I've migrated hosts and migrated blog software. My old URLs with wordpress were like this:

[myblog.com...]

where XX is a number of the post.

Serendipity by default does pretty URLs with

[myblog.com...]

so my question is...How do I get the URL from wordpress to automatically redirect forward to the new location (serendipity) using mod_rewrite? I've been trying to do this now for the past week and have made some lame attempts at it...but I bow to the mod_rewrite gods because my prowess is not in these rules. Can anyone help me out?

jdMorgan

3:35 pm on May 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You'll need one rule per old page, or a database to "associate" the new and old URLs. Mod_rewrite can change URLs, but you have to provide the 'rules' to associate new and old URLs; unfortunately, mod_rewrite is not prescient.

Jim

devnet

5:56 pm on May 27, 2006 (gmt 0)

10+ Year Member



Well...that stinks...but I figured as much and had already begun moving in that direction. Thanks for the help :)