Problems testing rss feeds in Safari locally with test domain, due to redirects 2

Posted by Tim Connor Mon, 23 Apr 2007 19:03:00 GMT

Safari redirects feeds to its internal pretty handling with the feed: protocol. If you are working with a local test domain, such as http://test/yourfeed.rss you’ll have problems. In this case, Safari adds a www. and a .com, which is a problem, since you probably aren’t serving the same content up at http://www.test.com/yourfeed.rss. I am not sure if it’s always the case, but it additionally hard to track down in my case, because somehow when it choked Safari ended up redirecting to http://yourfeed.rss without any domain.

I have filed a bug with Apple, but until then I am adding a ServerAlias for the www.com version of my dev domains in Apache config, as a work-around. And for some reason adding www.test.com in the NetInfo Manager doesn’t work, so I added it to my /etc/hosts file.

  1. Eelco 6 months later:

    Thanks!

    You can also add a localhost subdomain to one of your domains and use that. Or take a ‘public’ one, like http://localhost.google.com

  2. Ryan 10 months later:

    Hey. I just had this problem. I know this post is pretty old but using the localhost IP 127.0.0.1 works.

Comment form

(leave url/email »)

Help with Textile (code)