View Single Post
Old 02-04-2006, 10:58 AM   #1
BasilC
Zealot
BasilC is on a distinguished road
 
BasilC's Avatar
 
Posts: 129
Karma: 60
Join Date: Feb 2003
Location: London England
Device: Palm Tungsten T3
Question Link rewriting - request for help

I'd be grateful for some advice on how to write a script to do link rewriting for the Open Democracy website. I'm afraid that I have no knowledge of scripts at all, so it would have to be an idiot's guide.

I'm using the RSS feed as the starting page:

http://www.opendemocracy.net/xml/rss/home/index.xml

The links in the RSS feed look like this:

http://www.opendemocracy.net/debates...articleId=3239

Open Democracy is divided into a large number of different themes and debates. The links include both a Debate ID and an Article ID. However, the links to the print versions don't include a Debate ID and look like this:

http://www.opendemocracy.net/article...articleId=3239

If some kind person could show me how to write a script to handle this, I'd be most grateful. Some explanation of how it works would be useful too. Or maybe you could direct me to a website with a dummy's guide.

Finally, Sunrise XP evidently handles link rewriting differently, but I can't find an explanation anywhere. I presume that's because the help pages haven't been written yet?

(Afternote: I've now discovered that if I'd used the Plain Text version of the website, I could get the same results without any link rewriting - though there wouldn't be any images included. However, it would be nice to learn how to do this )
BasilC is offline