Link to home
Start Free TrialLog in
Avatar of Melody Scott
Melody ScottFlag for United States of America

asked on

RSS CSS no longer working

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="https://magickitchen.com/css/rss.css" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">


That's what I have on my rss feed, but the stylesheet isn't working anymore on Chrome, Edge, Firefox or Brave. https://www.magickitchen.com/news/healthy-living-feed.xml

It did work up until a short while ago, I don't think I made any changes, and the css file is there.
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Your xml is served from "https://www.magickitchen.com", and it imports the css from "https://magickitchen.com", which in turn redirects the request to "http://www.magickitchen.com".  So, ultimately the CSS is from the right domain (www.magickitchen.com), but now the scheme is different.  Your original request was via "https", but after the redirection, the CSS is sent over "http".  You need to fix the redirection to:
Location: https://www.magickitchen.com/css/rss.css
Avatar of Melody Scott

ASKER

Thanks- I'm not clear on where the redirection happens? Our server redirects all http requests to https, or so I am told.
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, that does work! Does this mean there is a problem with redirect on our server?  Really appreciate it!!
>>Does this mean there is a problem with redirect on our server?
No.  The problem is that the browser sees you load access www.magickitchen.com but are linking to a CSS from a different domain (www.magickitchen and magickitchen.com are two different domains.)