← back to Designerssalesreps

server.js

18 lines

'use strict';
// designerssalesreps.com — permanent 301 redirect to the canonical primary.
// This is the typo/plural variant; the real site lives at designersalesreps.com.
const express = require('express');
const app = express();
const PORT = process.env.PORT || 9916;

app.get('/health', (req, res) => res.json({ ok: true, redirect: 'designersalesreps.com' }));

app.use((req, res) => {
  const target = 'https://designersalesreps.com' + req.originalUrl;
  res.redirect(301, target);
});

app.listen(PORT, '127.0.0.1', () =>
  console.log(`designerssalesreps.com redirect → designersalesreps.com on :${PORT}`)
);