Skip to content

Instantly share code, notes, and snippets.

@prodeveloper0
Created October 1, 2018 13:25
Show Gist options
  • Select an option

  • Save prodeveloper0/75f00e1c218f93231b917a20dd3148f7 to your computer and use it in GitHub Desktop.

Select an option

Save prodeveloper0/75f00e1c218f93231b917a20dd3148f7 to your computer and use it in GitHub Desktop.
Catdrip.Net Redirector for DevDogdripper
// Cat needs express and more express
// Meow!
var express = require('express');
var app = express();
var server = app.listen(80, function() {
console.log('meow.js has started on port 80');
});
app.get('/', function(req, res) {
res.status(301).redirect('http://www.dogdrip.net');
});
app.get('/:id', function(req, res) {
res.status(301).redirect('http://www.dogdrip.net' + req.url);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment