fix url path

This commit is contained in:
deityhub
2021-11-26 10:59:58 +01:00
parent 80e95a5d2d
commit cb7488abf4
5 changed files with 10 additions and 10 deletions

View File

@@ -30,13 +30,13 @@ app.use(async function(req, res, next) {
try {
if (host && host === 'fyipe.com') {
res.writeHead(301, {
Location: `https://oneuptime.com/${req.url}`,
Location: `https://oneuptime.com${req.url}`,
});
return res.end();
}
if (host && host === 'staging.fyipe.com') {
res.writeHead(301, {
Location: `https://staging.oneuptime.com/${req.url}`,
Location: `https://staging.oneuptime.com${req.url}`,
});
return res.end();
}

View File

@@ -27,13 +27,13 @@ app.use(async function(req, res, next) {
try {
if (host && host === 'fyipe.com') {
res.writeHead(301, {
Location: `https://oneuptime.com/${req.url}`,
Location: `https://oneuptime.com${req.url}`,
});
return res.end();
}
if (host && host === 'staging.fyipe.com') {
res.writeHead(301, {
Location: `https://staging.oneuptime.com/${req.url}`,
Location: `https://staging.oneuptime.com${req.url}`,
});
return res.end();
}

View File

@@ -93,13 +93,13 @@ app.use(async function(req, res, next) {
try {
if (host && host === 'fyipe.com') {
res.writeHead(301, {
Location: `https://oneuptime.com/${req.url}`,
Location: `https://oneuptime.com${req.url}`,
});
return res.end();
}
if (host && host === 'staging.fyipe.com') {
res.writeHead(301, {
Location: `https://staging.oneuptime.com/${req.url}`,
Location: `https://staging.oneuptime.com${req.url}`,
});
return res.end();
}

View File

@@ -67,13 +67,13 @@ app.use(async function(req, res, next) {
try {
if (host && host === 'fyipe.com') {
res.writeHead(301, {
Location: `https://oneuptime.com/${req.url}`,
Location: `https://oneuptime.com${req.url}`,
});
return res.end();
}
if (host && host === 'staging.fyipe.com') {
res.writeHead(301, {
Location: `https://staging.oneuptime.com/${req.url}`,
Location: `https://staging.oneuptime.com${req.url}`,
});
return res.end();
}

View File

@@ -161,13 +161,13 @@ app.use(async function(req, res, next) {
try {
if (host && host === 'fyipe.com') {
res.writeHead(301, {
Location: `https://oneuptime.com/${req.url}`,
Location: `https://oneuptime.com${req.url}`,
});
return res.end();
}
if (host && host === 'staging.fyipe.com') {
res.writeHead(301, {
Location: `https://staging.oneuptime.com/${req.url}`,
Location: `https://staging.oneuptime.com${req.url}`,
});
return res.end();
}