This commit is contained in:
Raven Scott 2024-09-26 19:09:08 -04:00
parent 7e8297bb8b
commit 2d6e58d41d

6
app.js
View File

@ -291,7 +291,11 @@ app.get('/rss', (req, res) => {
// Global 404 handler for unmatched routes
app.use((req, res) => {
res.redirect('/');
if (req.hostname === hostname) {
res.redirect(process.env.HOST_URL);
} else {
res.redirect('/');
}
});
// Server Listening