https://github.com/jefking/sub-redirect
Simple Node.JS Redirect App
https://github.com/jefking/sub-redirect
dns domain javascript node-js redirect subdomain web web-application
Last synced: about 2 months ago
JSON representation
Simple Node.JS Redirect App
- Host: GitHub
- URL: https://github.com/jefking/sub-redirect
- Owner: jefking
- License: mit
- Created: 2018-07-02T15:36:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-31T20:53:01.000Z (over 7 years ago)
- Last Synced: 2025-03-27T20:46:21.197Z (about 1 year ago)
- Topics: dns, domain, javascript, node-js, redirect, subdomain, web, web-application
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Redirect
Redirects a request to a sub-domain. Request path should be maintained, meaning folers/files/query string will be applied to the request on the sub-domain. Protocol is configurable; if you want to redirect http to https.
## Examples
+ http://jefking.me -> http://www.jefking.me
+ http://jefking.me -> https://www.jefking.me
+ http://jefking.me?test=happy -> http://www.jefking.me?test=happy
+ http://jefking.me/index.htm?test=happy -> http://www.jefking.me/index.htm?test=happy
## Configuration
+ SUBDOMAIN = www (default)
+ PROTOCOL = http (default)