Forum Moderators: phranque
The Problem:
I was messing around with my CMS a few weeks ago and I added a new section that contains an RSS feed. I got it all working the way I wanted it and then changed the name of the section. But from the time I created the name, Google Feedfetcher found out about the RSS feed and now they are requesting it every 3 hours and getting a 404. I really want Google to fetch the new feed when they request the old one. (I hope this makes sense...)
The old broken link:
www.example.com/rss/?section=oldname
The one that works and I want people to use:
www.example.com/rss/?section=newname
I've played around with my .htaccess file but only resulted in generating "500 Internal Server" errors instead of the 404.
Any help is appreciated. thanks!
RewriteCond %{QUERY_STRING} section=oldname
RewriteRule (.*) http://www.example.com/rss/$1?section=newname [R=301,L]
RewriteCond %{QUERY_STRING} section=oldname
RewriteRule ^(rss/.*) http://www.example.com/$1?section=newname [R=301,L]
Jim