Webmastersite.net
Register Log In

Another silly RSS question

Comments on Another silly RSS question

david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Aug 07, 2005 - 8:48 PM:

I have
rssfeed.php?type=links&number=50&field=rating&ascdesc=ascending&thecondition=catid !=8 AND catid !=9

in my HTML. But this isn't a valid xml/rss feed url. How can I make that something like mytoplist.xml ?

Thanks
David
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 08, 2005 - 4:16 PM:

In my experience any URL works for a feed. Nonetheless you can click 'static generation' in your admin panel or make an .htaccess line.
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Aug 08, 2005 - 4:27 PM:

if using an .htaccess line, how would I format that?

Alias /rssfeed.php?type=links&number=50&field=time&ascdesc=descending&thecondition=catid=8/ /toplist.xml

OR

Alias /rssfeed.php?type=links&number=50&field=time&ascdesc=descending&thecondition=catid=8 /toplist.xml

???

Thx
David
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Aug 08, 2005 - 7:12 PM:

Alias /rssfeed.php?type=links&number=50&field=time&ascdesc=descending&thecondition=catid=8 /a.xml

That didn't work. Any thoughts? I know I am missing something very simple here, but since I don't know too much about Apache, can't figure it out.

Thx
David
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Aug 08, 2005 - 7:46 PM:

tried a RewriteRule. didn't work either. sad
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Aug 08, 2005 - 7:54 PM:

Try the following:

RewriteEngine on
RewriteBase /wsnlinks
RewriteRule ^toplist.xml$ rssfeed.php?type=links&number=50&field=time&ascdesc=descend ing&thecondition=catid=8


make sure RewriteBase is the path of your wsnlinks folder. Works for me.
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Aug 09, 2005 - 2:54 PM:

Hmm... what am I missing here?

Whenever I create an .htaccess file, I get an Internal Server Error on the site at all times.

I don't really want to enable the Rewrite for the whole site (slow down), just these rss feeds to have a normal url. Isn't there a way to enable the rewrite only for these feeds but keep the site functioning the way it is supposed to normally through the index.php ?

Thanks
David
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Aug 09, 2005 - 5:35 PM:

I'm not a ReWrite pro, but as far as I understand you're not rewriting the whole site - just try and see if it slows down anything. Don't turn mod_rewrite on in your directory setting.
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Aug 09, 2005 - 7:13 PM:

I didn't. that's why it's weird. Oh well, I'll just get a sys admin to look at this. smiling face

Thanks guys.

David
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.