WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Another silly RSS question

Version: 3.20
printPrint


Another silly RSS question
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 88
Total Posts: 304
Posted 08/07/05 - 05:48 PM:
quote post
#1
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6312
Posted 08/08/05 - 01:16 PM:
quote post
#2
In my experience any URL works for a feed. Nonetheless you can click 'static generation' in your admin panel or make an .htaccess line.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 88
Total Posts: 304
Posted 08/08/05 - 01:27 PM:
quote post
#3
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: 88
Total Posts: 304
Posted 08/08/05 - 04:12 PM:
quote post
#4
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: 88
Total Posts: 304
Posted 08/08/05 - 04:46 PM:
quote post
#5
tried a RewriteRule. didn't work either. sad
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003
Total Topics: 54
Total Posts: 200
Posted 08/08/05 - 04:54 PM:
quote post
#6
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.

Real Estate Business Directory
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 88
Total Posts: 304
Posted 08/09/05 - 11:54 AM:
quote post
#7
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 Posts: 200
Posted 08/09/05 - 02:35 PM:
quote post
#8
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.

Real Estate Business Directory
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 88
Total Posts: 304
Posted 08/09/05 - 04:13 PM:
quote post
#9
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


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.