Redirect from WWW to a non-WWW version of site in Rails

It is good practice to make your site available by both and URLs. But to prevent the duplication of pages ( and are the same) we should have one version of URL (with WWW or without) and redirect from another version to the chosen one (from www to non-www or vice versa).

Continue reading