Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carnesen/redirector
A Node.js http server that redirects e.g. example.com to www.example.com
https://github.com/carnesen/redirector
301 carnesen koa nodejs typescript www
Last synced: 26 days ago
JSON representation
A Node.js http server that redirects e.g. example.com to www.example.com
- Host: GitHub
- URL: https://github.com/carnesen/redirector
- Owner: carnesen
- License: mit
- Created: 2017-05-02T00:58:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-25T23:28:44.000Z (over 2 years ago)
- Last Synced: 2024-09-14T12:27:56.973Z (about 2 months ago)
- Topics: 301, carnesen, koa, nodejs, typescript, www
- Language: TypeScript
- Homepage: http://carnesen.com
- Size: 347 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license.md
Awesome Lists containing this project
README
A Node.js web server that redirects e.g. example.com to www.example.com
[![build status badge](https://github.com/carnesen/redirector/workflows/test/badge.svg)](https://github.com/carnesen/redirector/actions?query=workflow%3Atest+branch%3Amaster) [![npm version badge](https://badge.fury.io/js/%40carnesen%2Fredirector.svg)](https://www.npmjs.com/package/@carnesen/redirector) [![github stars badge](https://img.shields.io/github/stars/carnesen/redirector)](https://github.com/carnesen/redirector)
This service is deployed at [https://carnesen.com](https://carnesen.com). It's not easy to see in a browser (especially Google Chrome) because they often don't display the leading "www" on the URL. In a terminal though do:
```
curl -v https://carnesen.com
```
and notice the 301 redirect response to www.## Usage
This package gets deployed by [**@carnesen/google-cloud**](https://github.com/carnesen/google-cloud#usage) as the default Google App Engine service.
## Related
- [@carnesen/carnesen-dot-com](https://github.com/carnesen/carnesen-dot-com): Automates deployment of carnesen.com to Google Cloud Platform
## License
MIT © [Chris Arnesen](https://www.carnesen.com)