Moonshine plugin for handling no-www redirects
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Moonshine No-www

A plugin for Moonshine

A plugin for enabled redirect from www subdomain to top domain!


  • script/plugin install git://

  • Make sure configuration[:domain] is set to what you really want!

  • Invoke the recipe(s) in your Moonshine manifest recipe :no_www

=== Example

Say you have, and you're tired of those pesky w's in your URLs.

First, open up your config/moonshine.yml (or your config/moonshine/production.yml) and make sure that the domain is set to


Next, add domain aliases for the www-version of your domain, in addition to any other domains your app is responsible for:


Finally, open up your application manifest and add the recipe:

recipe :no_www

Now you should be all good to go!

Unless otherwise specified, all content copyright © 2014, Rails Machine, LLC