Canonicalization in Rails - routing or .htaccess?

For Apache, You can add the code below to your /public/. Htaccess file in your ROR app. I use this for most of my apps, because I don't like the '

For Apache, You can add the code below to your /public/. Htaccess file in your ROR app. I use this for most of my apps, because I don't like the 'www' RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*) NC RewriteRule ^(.*) %1/$1 R=301,L Hope this helps.

I skipped trying to handle this within the Rails app itself and went for this standard . Htaccess solution. Thanks – Matt Feb 21 at 16:52.

This is done using rewrite rules in the webserver. For nginx: techtitbits.com/2010/07/wwwno-www-rewrit... For Apache: boutell.com/newfaq/creating/withoutwww.html Also note that you should add two A records into your DNS zone file, like so @ IN A 10.0.0.1 www IN A 10.0.0.1 with 10.0.0.1 replaced with your IP address.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions