Sha256: c0bcaa97ff12dcd153e59cca039944b9aa98d8e3aee3b3350121a45bb61a2abd

Contents?: true

Size: 743 Bytes

Versions: 1

Compression:

Stored size: 743 Bytes

Contents

> I can live with or without WWW...
– Bono from U2

WithOrWithoutWWW
================

This Rack middleware is ridiculously simple.
It just add or remove `www` from your host name depending on what you want.
This is good for SEO to gather everything under one host name.

Normally, this is done in your vhost settings, which means that this middleware is for
when you don't have access to vhosts settings like on Heroku for example.

In your rack stack, use it:

    use WithOrWithoutWWW

And then it adds `www` if somebody tries to reach the website without it.
Whereas:

    use WithOrWithoutWWW, false

Will do the opposite.
It will remove the `www` from your host name.

I almost feel guilty to make a Gem for that.

Thx for reading,
Mig

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
with-or-without-www-0.0.1 README.md