Hi Basically I have a permalink system setup using the to_param method in the model file. Since I have a system in which categories has_many tutorials, my URLs look a bit like this:
site.com/CatID-Category-Perma/TutID-Tutorial-Perma I have a system to redirect when the user puts in an ID to the proper permalink; like this: @tutorial = Tutorial.find(params[:id]) @category = Category.find(params[:category_id]) if isNumeric(params[:id]) || isNumeric(params[:category_id]) redirect_to tutpmlnk_path(:category_id => @tutorial.category, :id => @tutorial) return false end However there is still a massive problem in my permalink system; which is if the user types in a wrong permalink it still goes to the correct page (and counts as duplicate content). For example: The proper URL to an example page: site.com/CatID-Category-Perm The wrong URL that works: site.com/CatID-ANYTHING This also works if you put the tutorial ID followed by anything. I need to try and find a way to redirect these wrong URLs to the right ones; I've spent hours and hours trying to figure out ways around it but none of them seem to work. Could someone PLEASE help me with this massive issue in my permalink system? Please Help, Thanks In Advance, Joe -- 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-t...@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.