Here is a page on the myriad ways of redirecting. They don’t recommend the html way, but in a static site I think that is the only way available?
https://css-tricks.com/redirect-web-page/
Hey @douglaskastle,
RSS feeds are a problem right now, absolutely correct.
Is the URL of the feed part of the current page?
Is it linked somewhere?
This way, Simply Static should be able to parse and export it.
@patrickposner
Yes there are 2 examples in the linked page, this is a generic rss feed
https://gurucomedy.podonaut.com/comments/feed/
and this is the podlove generated one:
https://gurucomedy.podonaut.com/feed/podcast/
Both fail as “links”, but if you add index.xml to both you will find the correct feed.
I practiced last night and added an index.html in parallel with a redirect to the xml and it seemed to work:
https://stackoverflow.com/questions/5411538/redirect-from-an-html-page
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://gurucomedy.podonaut.com/comments/feed/index.xml">
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to <code>click</code> the link, just tell them that it is a link. -->
If you are not redirected automatically, follow this <a href='https://gurucomedy.podonaut.com/comments/feed/index.xml'>xml</a>.
</body>
</html>
Update:
I have been looking at this just from a raw html perspective.
My problem is that I have a podcast, (using podlove), and the rss link is given as a link, not a file. That link has been given out to a tone of podcast directories and it is an unbelievable pain to change it.
The podcast website is currently under wordpress, but I want to move it to a static site, I can redirect the domain name no problem, it is getting that link to perform under the static site, like a link, using only html is proving impossible. I am using github pages for hosting, so I don’t have the ability to set up server rewrite rules in there to create a 301.
I tried the html to xml redirect, it works in a broswers, but most rss parser tools do not respect this. They want a 301 redirect or nothing. It does not appear to be able to do a 301 redirect in a static site using html.
In my case I am using cloudflare for my domain hosting, I am able to set up a 301 URL redirection here, this gives me the type of link resolution I am looking for. This solution may not work for other people.