Forum Moderators: phranque
RewriteCond %{HTTP_USER_AGENT} !FeedBurner
RewriteCond %{HTTP_USER_AGENT} .
RewriteRule ^rss/podcasts/Women-Talk-Sci-Fi\.xml$ http://feeds2.feedburner.com/WomenTalkSciFi [R,L] Thanks in advance
[edited by: jdMorgan at 2:20 am (utc) on April 22, 2009]
[edit reason] De-linked [/edit]
It is in the .htaccess in the root of the site
Feedburner and several other sites I have found recommend using 302 rather than 301... Since I'm a newb when it comes to this I'm just sticking with those recommendations right now... I may be able to stumble my way around HTML, CSS and PHP but all this Apache stuff is new to me...
Thanks again for your help...
It is meant to allow me use feedburner to track stats of my podcast usage whilst maintaining my existing subscribers list...
At the moment even with the RewriteRule in there it is not performing the redirect...
[EDIT] If you try clicking on either of those URLS you'll see the first brings up the raw XML data whilst the second takes you to a browser friendly view of the xml within feedeburner... When the redirect is working the first url should also take you to the browser friendly version of the xml feed...
Help that helps to clarify the issue... Thanks...
[edited by: jdMorgan at 2:21 am (utc) on April 22, 2009]
[edit reason] No URLs, please. Use example.com [/edit]
I'll go check the system logs now and get back to you...
EDIT: Could not see any errors associated with that domain... A few file does not exist errors with another domain on the same server but that is it...
<snip>
[edited by: jdMorgan at 4:18 am (utc) on April 22, 2009]
[edit reason] Do NOT post copyrighted code, please. [/edit]
As for posting only the relevant parts I guess I have done that in the first post... The rest of the .htaccess file is the standard joomla one with the feedburner redirect right at the bottom...
Sorry for the mistake :(
However I just did add this to try and block direct links to media files on my domain and it seems to work perfectly...
Order deny,allow
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com/.*$ [NC]
RewriteRule \.(gif¦jpg¦png¦mp3¦mpg¦avi¦mov)$ - [F]
So at least that shows .htaccess is doing something just not the feedburner redirect...
THanks
Previously I was referring to the firectory that my xml was in... ^rss/podcast\.xml$ would never work... Using ^([^.]+)\.xml$ works a charm though...
Not sure if it the right fix or not... Right now I only have one rss feed on the site... I'm not sure what will happen though when I add more xml files... I think no matter which one is used they will all redirect to feedburner/WomenTalkSciFi... Would that be correct? If so how can I make sure that xml 'x' is redirected to feedburner 'x' etc etc... Hope that makes sense :)
Thanks heaps for all your help so far...
RewriteCond %{HTTP_USER_AGENT} !FeedBurner
RewriteRule ^([^.]+)\.xml$ [feeds2.example.com...] [R=302,L]