Web Servers on Unix and Linux - Rewrite and dropping query string

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > January 2006 > Rewrite and dropping query string





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Rewrite and dropping query string
Chris Lott

2006-01-09, 7:49 am

I have the following in my .htaccess

RewriteCond %{QUERY_STRING} ^rss=1$
RewriteRule ^(.*)$ http://feeds.feedburner.com/Ruminate/rss [R,L]
RewriteCond %{QUERY_STRING} ^atom=1$
RewriteRule ^(.*)$ http://feeds.feedburner.com/Ruminate/atom [R,L]

It works, in that it redirects from
mysite.com/?rss=1
to
http://feeds.feedburner.com/Ruminate/rss?rss=1

But I'd like it NOT to append that query string and just redirect to:
http://feeds.feedburner.com/Ruminate/rss

(that seems like what it should do anyway)... so what's the fix?

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com