Rewrite and dropping query string
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers on Unix and Linux > Rewrite and dropping query string




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Rewrite and dropping query string  
Chris Lott


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-09-06 12:49 PM

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?






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:41 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register