In your controller you can redirect to the same action without the
'page' in the querystring if it is equal to 1.

def index
  redirect_to :action => 'index' if params[:page] && params
[:page].to_i == 1
  params[:page] ||= 1

  .... # your normal code here
end

On Mar 29, 5:03 am, Aldo Italo <[email protected]>
wrote:
> i have noted a problem in will_paginate :
>
> In a pagination, when go to pages geather than 1 value thath' ok, but if
> you back to page 1 in the URL appear the parameter page=1
> this is bad for seo optimization, because engine view same page with
> diffent URL.
>  how can remove the param only for the first page?
> --
> Posted viahttp://www.ruby-forum.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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to