Hi Folks, This is my sample url: *http://xxxx.com/product_details? category_id=produce&product_id=fresh-georgia-peaches--17<http://afstaging.herokuapp.com/product_details?category_id=produce&product_id=fresh-georgia-peaches--17> * The highlighted (red) things are my params. How can i hide those params in this url.It should be SEO friends url. Please advise.. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/KJWJUp84-4oJ. For more options, visit https://groups.google.com/groups/opt_out.
On Wed, Nov 28, 2012 at 3:12 AM, Maddy <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org> wrote:> http://xxxx.com/product_details?category_id=produce&product_id=fresh-georgia-peaches--17That is not an SEO unfriendly URL.> The highlighted (red) things are my params.http://guides.rubyonrails.org/routing.html -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Yes, am asking how can i optimize this url as a friendly url?? On Wed, Nov 28, 2012 at 2:54 PM, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Wed, Nov 28, 2012 at 3:12 AM, Maddy <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org> wrote: > > > http://xxxx.com/product_details?category_id=produce&product_id=fresh-georgia-peaches--17 > > That is not an SEO unfriendly URL. > > > The highlighted (red) things are my params. > > http://guides.rubyonrails.org/routing.html > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- *"Attitude is a little thing that makes a big difference"* Thanks & Regards *Ashokkumar.Y* *ROR-Developer **email : ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org* * * -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Wed, Nov 28, 2012 at 5:49 PM, Ashokkumar Yuvarajan < ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org> wrote:> Yes, am asking how can i optimize this url as a friendly url?? >i think you need to use nested resources. I''m assuming that a product belongs to a category so you can use xxxx.com/produce/fresh-georgia-peaches--17/product_details or xxxx.com/categories/produce/products/fresh-georgia-peaches--17/product_details> > On Wed, Nov 28, 2012 at 2:54 PM, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > >> On Wed, Nov 28, 2012 at 3:12 AM, Maddy <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org> wrote: >> > >> http://xxxx.com/product_details?category_id=produce&product_id=fresh-georgia-peaches--17 >> >> That is not an SEO unfriendly URL. >> >> > The highlighted (red) things are my params. >> >> http://guides.rubyonrails.org/routing.html >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > -- > > *"Attitude is a little thing that makes a big difference"* > > > Thanks & Regards > *Ashokkumar.Y* > *ROR-Developer > **email : ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org* > > > * > * > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- ------------------------------------------------------------- visit my blog at http://jimlabs.heroku.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Wed, Nov 28, 2012 at 3:49 AM, Ashokkumar Yuvarajan <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org> wrote:> Yes, am asking how can i optimize this url as a friendly url??The link I sent tell you how to do it. Depending on how you have your actions setup depends on how easy it is. If your actions are designed to handle both category_id and product_id you need not change your code at all because rails builds it the same way to your action so now you need to just add the get in there but it''s better you read the link I sent and learn than me tell you because then you learn nothing and I''m not your developer I''m only here to guide you. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
use friendly_id gem. On Wednesday, November 28, 2012 2:42:04 PM UTC+5:30, Maddy wrote:> > Hi Folks, > > This is my sample url: *http://xxxx.com/product_details? > category_id=produce&product_id=fresh-georgia-peaches--17<http://afstaging.herokuapp.com/product_details?category_id=produce&product_id=fresh-georgia-peaches--17> > * > > The highlighted (red) things are my params. > > How can i hide those params in this url.It should be SEO friends url. > > Please advise.. >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/LvgPsYOsIqMJ. For more options, visit https://groups.google.com/groups/opt_out.
Jordan is saying that the above URL is just as SEO Friendly as the below URL. SEO Friendly != Looks nice to humans. This article has the gist of it: http://gabesumner.com/are-search-engine-friendly-urls-really-search-engine-friendly On 28/11/12 18:24, Jordon Bedwell wrote:> On Wed, Nov 28, 2012 at 3:12 AM, Maddy <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org> wrote: >> http://xxxx.com/product_details?category_id=produce&product_id=fresh-georgia-peaches--17 > That is not an SEO unfriendly URL. > >> The highlighted (red) things are my params. > http://guides.rubyonrails.org/routing.html >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
It is not SEO unfriendly.. what you''re asking for is a human friendly URL. On 2012-11-28 10:19:51 +0000, Ashokkumar Yuvarajan said:> Yes, am asking how can i optimize this url as a friendly url?? > > On Wed, Nov 28, 2012 at 2:54 PM, Jordon Bedwell > <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > On Wed, Nov 28, 2012 at 3:12 AM, Maddy > <ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org> wrote: > > > http://xxxx.com/product_details?category_id=produce&product_id=fresh-georgia-peaches--17 > > > That is not an SEO unfriendly URL. > > > The highlighted (red) things are my params. > > http://guides.rubyonrails.org/routing.html > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > "Attitude is a little thing that makes a big difference" > > Thanks & Regards > Ashokkumar.Y > ROR-Developer > email : ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org > > > > > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On Wednesday, November 28, 2012 10:00:49 AM UTC, jim wrote:> > > > > On Wed, Nov 28, 2012 at 5:49 PM, Ashokkumar Yuvarajan < > ashok...-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org <javascript:>> wrote: > >> Yes, am asking how can i optimize this url as a friendly url?? >> > > i think you need to use nested resources. I''m assuming that a product > belongs to a category so you > can use >I think the OP wants to hide the params completely, could he not create a route that uses POST instead of GET? Paul> > xxxx.com/produce/fresh-georgia-peaches--17/product_details or > > xxxx.com/categories/produce/products/fresh-georgia-peaches--17/product_details > > >> >> On Wed, Nov 28, 2012 at 2:54 PM, Jordon Bedwell <envy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<javascript:> >> > wrote: >> >>> On Wed, Nov 28, 2012 at 3:12 AM, Maddy <ashok...-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org<javascript:>> >>> wrote: >>> > >>> http://xxxx.com/product_details?category_id=produce&product_id=fresh-georgia-peaches--17 >>> >>> That is not an SEO unfriendly URL. >>> >>> > The highlighted (red) things are my params. >>> >>> http://guides.rubyonrails.org/routing.html >>> >>> -- >>> 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 rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:> >>> . >>> To unsubscribe from this group, send email to >>> rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> >> -- >> >> *"Attitude is a little thing that makes a big difference"* >> >> >> Thanks & Regards >> *Ashokkumar.Y* >> *ROR-Developer >> **email : ashok...-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org <javascript:>* >> >> >> * >> * >> >> -- >> 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 rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:> >> . >> To unsubscribe from this group, send email to >> rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > ------------------------------------------------------------- > visit my blog at http://jimlabs.heroku.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/2rnmbJv26MEJ. For more options, visit https://groups.google.com/groups/opt_out.
On Mon, Dec 3, 2012 at 8:49 AM, paul h <paul-nqL44GTounsJ3nxcUk3PyQ@public.gmane.org> wrote:> I think the OP wants to hide the params completely, could he not create a > route that uses POST instead of GET?Why would you use post instead of get? There is no need to change anything really (if your code is designed right at least) because all you would need to do is "/uri/:category_id/:product_id" => "controller#action" and it will route it and setup the params the same way it would with query strings. The problem comes in with the fact that you can kill your SEO by doing that because you provide no useful information for the search engine, you actually strip some context but that''s not my concern it''s yours. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.