update menu
This commit is contained in:
parent
f101f38017
commit
9c3957c8f0
11
app.js
11
app.js
@ -333,10 +333,15 @@ app.get('/rss', (req, res) => {
|
||||
res.send(rssFeed);
|
||||
});
|
||||
|
||||
|
||||
// Global 404 handler for any other unmatched routes
|
||||
// Global 404 handler for unmatched routes
|
||||
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('/');
|
||||
}
|
||||
});
|
||||
|
||||
// ================================
|
||||
|
Loading…
Reference in New Issue
Block a user