Forum Moderators: phranque

Message Too Old, No Replies

using mod_rewrite to change RSS

         

wbauchus

7:46 pm on Aug 25, 2005 (gmt 0)

10+ Year Member



Hi all,
This is my first post, so if this should be in a different category please forgive me.

I have a few questions regarding RSS and mod rewrites. I'm admittedly non-technical, so watered down replies would be appreciated.

There are a few RSS/rewrite methods which I've seen on a popular website that I'd like to try.

1. RSS is used to create (Seemingly) on the fly content pages, complete with rewritten meta data.

example: Widgets Warehouse on Fire is the title of the article from the newsfeed. This in turn creates on the website
"<site.com/content/widgets-warehouse-on-fire.html>Widgets Warehouse Fire</link>
In local news a widget warehouse caught fire..."

Meta description = "Widgets Warehouse on Fire - Site.com"

2. The newsfeed links and descriptions then go into their own feed, but when you click on the headline, you are taken to

site.com/content/widgets-warehouse-on-fire.html

which provides a link to the full article from the original feed. I'm guessing this is done with variables, which generally already exist from parsers (magpie and carp being 2 popular ones).

3. At the rewritten page, the link to the "full story" (original newsfeed link) is redirected using [site.com?goto"originalURL.com...]

What's the easiest way to accomplish this 3 part RSS/re-write combo which judging by published PR seems to work pretty well?

jdMorgan

9:32 pm on Aug 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



wbauchus,

Welcome to WebmasterWorld!

I'm not sure how to answer your question. If you're looking for the general method, then posting in the RSS and realted technologies [webmasterworld.com] forum may yield better results. If you need information about how to write RewriteRules, the documentation cited in our forum charter and the tutorials in the Apache section of the WebmasterWorld library are a good place to start.

Once you've narrowed the problem down to a specific question about (or error in) mod_rewrite, we can probably be of more help.

Jim

wbauchus

2:21 am on Aug 26, 2005 (gmt 0)

10+ Year Member



Thanks for the welcome!
I'm not sure how to answer your question.

I've managed to confuse people with my first post, that must count for something :)

If you're looking for the general method, then posting in the RSS and realted technologies forum may yield better results.
Sounds good, I wasn't too sure which forum to post in.

If you need information about how to write RewriteRules, the documentation cited in our forum charter and the tutorials in the Apache section of the WebmasterWorld library are a good place to start.

Once you've narrowed the problem down to a specific question about (or error in) mod_rewrite, we can probably be of more help.

I suppose my question is how to use mod rewrite to change
(newsfeed title)Widget Story
(description)Learn about the latest widget technology
(url of full story)http://www.newsfeed.com/gobbledygook456

into a file on my site which can be accessed from www.mysite.com/(newsfeed title).html
That html file's meta information would be
meta title = "(newsfeed title) - site.com"
meta description = "(description)"

The on page html would have the newsfeed title, description and a full story link which would look like
<a href="www.mysite.com/goto.php?(url of full story)"> Full Story Here</a>

I think everything after that will have me hoping to hear from the friendly people in the RSS and/or PHP forums. Or maybe this is all something I should post in the RSS forum?