Help migrating from S9Y to Wordpress

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Help migrating from S9Y to Wordpress

Post by hgoor »

Hi Guys,

I know this is probably not going to be a popular post, but I have to post it anyway :oops:

After 4+ years of using S9Y and experiencing various problems with it (especially with upgrading), I started to test Wordpress 8 months ago, running a shadow copy of my blog on my server at Site5.com (http://www.vandegoor.com/beta).

After experiencing the complete ease of use of WP - with it's one click upgrades (a feature I asked for with S9Y but was rejected because of "security issues") , one click installation of themes the multitude of plugins fully AJAX backend etc. etc. - I have now decided to move to WP permanently (sorry guys, nothing personal :cry: )

However, I do want to keep access to my 4+ years of articles in S9Y.

So what I am trying to accomplish is the following: use WP as my main blog, but keep S9Y running in the background so I can link to old articles there from WP using a link such as: /archives/whatever-old-article-name (what I actually do now).

So here I am, asking for some expertise to make this happen :oops:

Here is my current setup: I installed S9Y in the root of my website. I installed WP in a subdir called /beta.

Now, there is an easy way to use WP and telling it that it should use the ./ even if it is installed in another directory (as explained here in this article: http://www.optiniche.com/blog/145/wordp ... directory/).

I tried that and it works. Except for one problem: WP uses it's own MOD_REWRITE rules, so using /archives for S9Y (I use some references now in articles in WP to old S9Y articles) won't work anymore.

I am thinking of two possible scenario's here to possibly solve this and hopefully someone can help me here :|

1) Edit the mod rewrite rules so when I refer to /archives/ it uses the (old) S9Y rewrite rules
2) "move" S9Y to another directory

I don't know about option 2, as it seems very problematic and might kill my working S9Y. So I hope that option 1 will save me.

If I look at my current .htaccess for S9Y, these parts are in it that refer to "archives":

Code: Select all

RewriteEngine On
RewriteBase /
RewriteRule ^((archives/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+\.html)/?) index.php?/$1 [NC,L,QSA]
and:

Code: Select all

RewriteRule ^archives([/A-Za-z0-9]+)\.html index.php?url=/archives/$1.html [NC,L,QSA]
and:

Code: Select all

RewriteRule ^archive/? index.php?url=/archive [L,QSA]
Now, if I compare it to the .htaccess for WP, it says:

Code: Select all

rewriteengine Off
DirectoryIndex index.php index.htm index.html default.htm default.html

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /beta/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /beta/index.php [L]
</IfModule>

# END WordPress
Now, I wonder if I leave the S9Y index.php in my root as well, but rename it to indexs9y.php and then add something like:

Code: Select all

RewriteRule ^((archives/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+\.html)/?) indexs9y.php?/$1 [NC,L,QSA]
RewriteRule ^archives([/A-Za-z0-9]+)\.html indexs9y.php?url=/archives/$1.html [NC,L,QSA]
RewriteRule ^archive/? indexs9y.php?url=/archive [L,QSA]
to the WP .htaccess, I wonder if that would work?

Or would I need to add/change more? I guess if I want access to the backend of S9Y I might need to do more than this? :?:

Anyway, if anyone here would be so kind to help out - despite the fact I am moving from S9Y - I would very much appreciate it...

Ps: I have used S9Y a long time and liked it, but I just like the ease of use of WP better - it's a matter of personal choice and in no way I intent to say that S9Y is "inferior" or something...
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Help migrating from S9Y to Wordpress

Post by garvinhicking »

Hi!
because of "security issues"
If you look at WP, that's my point exactly - no wonder they have it ;)

Good look with the migration! Maybe you can ask for support on the WP forums as for specifics of import procedures.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Re: Help migrating from S9Y to Wordpress

Post by hgoor »

garvinhicking wrote:Hi!
because of "security issues"
If you look at WP, that's my point exactly - no wonder they have it ;)

Good look with the migration! Maybe you can ask for support on the WP forums as for specifics of import procedures.

Regards,
Garvin
Hi Garvin,

Thanks for your "in-depth" reply.

I guess gloating over other projects problems is alway easy. Professional courtesy etc..?

Anyway: my aim would not be to import (that can be done via export/import or RSS), but to have S9Y still running "in the background" so to speak.

But I catch the hint in your reply.
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Help migrating from S9Y to Wordpress

Post by garvinhicking »

Hi!
I guess gloating over other projects problems is alway easy. Professional courtesy etc..?
Well...I was just making a point here. Serendipity cares about Security more than offering a feature that can be considered very harmful.

About the migration, I can't help simply because I don't use WordPress, so I'm sorry. That's completely independent to my point before, though. I would help if I could, I think my efforts on this forum here prove that.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Re: Help migrating from S9Y to Wordpress

Post by hgoor »

garvinhicking wrote:Hi!
I guess gloating over other projects problems is alway easy. Professional courtesy etc..?
Well...I was just making a point here. Serendipity cares about Security more than offering a feature that can be considered very harmful.

About the migration, I can't help simply because I don't use WordPress, so I'm sorry. That's completely independent to my point before, though. I would help if I could, I think my efforts on this forum here prove that.

Regards,
Garvin
Let's not go too far off-topic, but your statement could be interpreted in a way that it implies that S9Y developers care more about security, in lieu of features, than WP developers do. (But I'm sure that's not what you intended).

Anyway, back on topic: do you think that S9Y would still function if I rename the index.php and then adjust .htaccess?

I mean: this has nothing to do with how WP functions, but how S9Y functions?

And actually if I think of it: I am not "migrating" but "switching" ;-)

As I wrote: I intend to keep S9Y running for my archive.....
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Help migrating from S9Y to Wordpress

Post by Don Chambers »

Sorry to hear of your departure from s9y... I frequently hear the opposite of your experience..... such as "WP is bloated, slow, difficult to use, constantly requires updating, etc, etc...." but, if you think it is the better choice, then go for it. I have never used WP so I have no personal experience with it.

Serendipity's configuration allows you to specify the name of the index file. It should be the last option under "Paths". So, I THINK (but do not know for sure) that you could change the default index.php to s9y.php (or whatever you wish) and I believe s9y will modify .htacess accordingly.
=Don=
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Re: Help migrating from S9Y to Wordpress

Post by hgoor »

Don Chambers wrote:Sorry to hear of your departure from s9y... I frequently hear the opposite of your experience..... such as "WP is bloated, slow, difficult to use, constantly requires updating, etc, etc...." but, if you think it is the better choice, then go for it. I have never used WP so I have no personal experience with it.

Serendipity's configuration allows you to specify the name of the index file. It should be the last option under "Paths". So, I THINK (but do not know for sure) that you could change the default index.php to s9y.php (or whatever you wish) and I believe s9y will modify .htacess accordingly.
Hi,

Hey thanks: I didn't even think of that. Indeed you can specify that...

Now, maybe when I then want to refer to my archive it is just a matter of specifying the url as path/sys9.php/archive or something....

I don't know...

The whole thing is that I whenever I use an url with "/archive/whatever-article-name" that call needs to be handled by S9Y (as it still is running).

The permalinks from WP use another format without /archive/ (it's by year, month, day, name).

Hmm... that might be a good one...

However, I still think I might need to somehow combine the .htaccess from WP with parts of S9Y??


Thanks for your time!
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Help migrating from S9Y to Wordpress

Post by Don Chambers »

You lost me.... :wink:

hmmm.... Sounds like a lot of aggravation - both now, and in the future.

If you really love WP and think it insanely superior to s9y, I say go for a full conversion... WP probably has an importer for s9y (again - I have never used wp, so I am not sure). This is an entry written by someone who just did the opposite of you: converted to s9y FROM wp: http://www.cmscritic.com/archives/84-Go ... pity..html

However, if you just need a feature or 2 here and there, perhaps you can lobby for enhancements to s9y.

@ Garvin - why would a one-click upgrade present a potential security breach? Isn't this essentially what we are doing for plugins?
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Help migrating from S9Y to Wordpress

Post by garvinhicking »

Hi!
@ Garvin - why would a one-click upgrade present a potential security breach? Isn't this essentially what we are doing for plugins?
This would mean that a mechanism within the web interface would need total write access to every single file and directory on the site, and either permissions would be very open, or you would need to store/save your credentials on the blog, making it a possible target for any attacker.

If someone wants to code the upgrade I would optionally offer this to our users, but I myself have no motivation at all to create code for this.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Help migrating from S9Y to Wordpress

Post by Don Chambers »

garvinhicking wrote:This would mean that a mechanism within the web interface would need total write access to every single file and directory on the site, and either permissions would be very open, or you would need to store/save your credentials on the blog, making it a possible target for any attacker.
That does sound potentially nasty.... but isn't the current installation process already doing this? ie, have write access to every file and folder on the site via a web interface?
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Help migrating from S9Y to Wordpress

Post by garvinhicking »

Hi Don!

No, not usually - it only applies to new files created, all existing files would need explicit write privileges (which is why archives/ and uploads/ etc. are checked seperately).

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Help migrating from S9Y to Wordpress

Post by Don Chambers »

Thanks for the explanation. Maybe someone will come up with a creative solution without opening up a security issue in the future.... you have to admit, a one click update would be nice.
=Don=
Post Reply