View Single Post
Old 04-30-2006, 07:23 AM   #1
Schmickers
Junior Member
Schmickers began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2006
Device: Tungsten E
Question Sunrise XP Link Rewriting for Webcomic

I have a question about link rewriting.

I want to download an RSS feed for a webcomic, Ctrl+Alt+Del. The RSS feed links to both news items and comic pages. The comic page links, from the XML page of the RSS feed, are in the format:

http://cad-comic.com/comic.php?d=2006-04-29

When the actual link is follow, though, it appears as:

http://cad-comic.com/comic.php?d=20060429

...in the location bar of the browser.

On each of these pages, the comic is a JPG image, with the link:

http://cad-comic.com/comics/20060429.jpg

What I want to do is re-write the RSS feed links to point directly to the jpg images, rather than the entire page, which contains a heap of formatting and graphics and has no printable/PDA version. I've tried...

(.*)/comic\.php?d=(.*)-(.*)-(.*)

...rewritten into...

$1/comics/$2$3$4.jpg

And also...

(.*)/comic\.php?d=(.*)

...rewritten into...

$1/comics/$2.jpg

...and neither seem to work. They still link to the full pages. Any suggestions? Does Sunrise XP support rewriting URL links to direct image links?

I am using Sunrise XP Beta 9f.
Schmickers is offline