Created
October 1, 2018 13:25
-
-
Save prodeveloper0/75f00e1c218f93231b917a20dd3148f7 to your computer and use it in GitHub Desktop.
Catdrip.Net Redirector for DevDogdripper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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