RSS CSS no longer working

Melody Scott
Melody Scott used Ask the Experts™
on
<?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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Expert of the Year 2008
Top Expert 2008

Commented:
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

Author

Commented:
Thanks- I'm not clear on where the redirection happens? Our server redirects all http requests to https, or so I am told.
Expert of the Year 2008
Top Expert 2008
Commented:
Try changing:
<?xml-stylesheet type="text/css" href="https://magickitchen.com/css/rss.css" ?>

to:
<?xml-stylesheet type="text/css" href="https://www.magickitchen.com/css/rss.css" ?>

Author

Commented:
Thanks, that does work! Does this mean there is a problem with redirect on our server?  Really appreciate it!!
Expert of the Year 2008
Top Expert 2008

Commented:
>>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.)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial