just to make sure i dunerstood this. so to optimize ranking, when soeone types in xxx.com it should be routed to www.xxx.com at the level of the http server?
On Jun 2, 5:10 am, Chris Kottom <ch...@chriskottom.com> wrote: > Yes, important point there. The choice to host across multiple subdomains > should be made for a reason, not by default. If the subdomain is an > essential part of the user's request (Google up "Basecamp style subdomains" > if you're not sure what I mean by this) then it's possible that you'd want > separate cookies for each subdomain. In the vast majority of cases however, > the application isn't inferring anything from the subdomain, and you're > potentially losing PageRank. > > Making the configuration at the web server will help you with both problems, > if it is in fact a problem to have more than one subdomain, whereas the > Rails-only solution helps only with cookie management. > > On Thu, Jun 2, 2011 at 9:53 AM, ratnadeepdeshm...@gmail.com < > > > > > > > > ratnadeepdeshm...@gmail.com> wrote: > > But overall redirection from non www to www or vice versa should be done at > > least for "www" subdomain.. As google bot considers www and non www as two > > different sites. > > > So go with Apache configs way if you want www and non www to be same. > > > And go with Rails cookies way, if you really have some subdomains like > > app1.example.com and app2.example.com, where app1 and app2 are sharing the > > session. > > > On Thu, Jun 2, 2011 at 9:18 AM, jiblethead <jibleth...@gmail.com> wrote: > > >> > in config/initializers/session_store.rb > > >> > MyApp::Application.config.session_store :cookie_store, :key => > >> > '_my_app_session', :domain => 'xxx.com' > > >> the solution I've found to work consistently is to modify as above, > >> but set :domain => '.xxx.com' > > >> Having the leading period (.) will set a common cookie that is shared > >> by all subdomains. I use this technique to handle a secure subdomain > >> vs. a www subdomain, without creating new sessions between the two. > > >> Kevin > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Ruby on Rails: Talk" group. > >> To post to this group, send email to rubyonrails-talk@googlegroups.com. > >> To unsubscribe from this group, send email to > >> rubyonrails-talk+unsubscr...@googlegroups.com. > >> For more options, visit this group at > >>http://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- > > Ratnadeep Deshmane. > >http://rtdptech.com > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk@googlegroups.com. > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.