An open API service indexing awesome lists of open source software.

https://github.com/samthor/no-www

no-www hosting
https://github.com/samthor/no-www

Last synced: 2 months ago
JSON representation

no-www hosting

Awesome Lists containing this project

README

          

Go binary which should be run on "www." hostnames.
This does only a few things:

* removes all "www." prefix from the domain
* redirects to https:// only
* only responds to GET requests

For example:

* http://www.example.com => https://example.com
* http://www.www.foo.bar => https://foo.bar
* https://test.com => 404
* https://www.test.com/hello => https://test.com/hello

## JS source

JS source is as files only for convenience.
It's actually served from the inline version found in the Go source code.