update menu

This commit is contained in:
Raven Scott 2024-09-26 00:18:59 -04:00
parent f101f38017
commit 9c3957c8f0

11
app.js
View File

@ -333,10 +333,15 @@ app.get('/rss', (req, res) => {
res.send(rssFeed); res.send(rssFeed);
}); });
// Global 404 handler for unmatched routes
// Global 404 handler for any other unmatched routes
app.use((req, res) => { app.use((req, res) => {
res.redirect('/'); // Redirect to the home page for any 404 error if (req.hostname === 'blog.raven-scott.fyi') {
// Redirect to the main domain
res.redirect('https://raven-scott.fyi');
} else {
// Redirect to home page of the current domain
res.redirect('/');
}
}); });
// ================================ // ================================