how to avoid links like ?page=10

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by eule on December 15, 2012 at 11:59am

Hello,
i have a panel page for the front. i look in to google via site:www.example.com he shows me urls like www.example.com/?page=10
what is wrong ..but can access and crawls the urls ...thats dc and very bad for my seo. i think this is not usefull to add urls like this to the robots.txt ...google will index it anway.
any help ?

Categories:

Comments

fiendly/clean urls

Posted by josebrito on December 15, 2012 at 1:41pm

You should configure fiendly/clean urls.
I suggest you use path and pathauto modules and configure site frontpage path on site configuration to the panel path

i use clean urls...but

Posted by eule on December 15, 2012 at 5:03pm

i use clean urls...but pagination isn ́t helpfull under drupal..you know node/?page=1 this isnt fixed with path or pathauto module

panel path is /home and is rewritet via globalredirect module to /

how i can panels config to give the bot a 404 on crawlings like this?
any how to for d7 around?

Greets from Germany
Prepaid Tarifvergleich

Resources

Posted by silkogelman on December 17, 2012 at 11:39am

Googles information about this
http://googlewebmastercentral.blogspot.nl/2011/09/view-all-in-search-res...

rel="canonical" for nodes can be accomplished with http://drupal.org/project/metatag

and if you go for the 'my-view?page=2' to 'my-view/2' option
you may want to have a look at this module http://drupal.org/project/cleanpager
in this case you may want to consider adding rel=prev / rel=next tags too.
Code way:
http://www.netentropy.com/how-create-pagination-uses-relnext-and-relprev...
(could not find easy module integration for this atm)

first thanks for your replay

Posted by eule on December 17, 2012 at 12:57pm

first thanks for your replay s1l

  1. i use metatag rel="canonical" but i mean googlebot handle this not very well. if i look to my log files googlebot trys the urls and do not understand or read the canonical url..if he does she have not came back to this url..but he does

  2. good point i will try..have not know yet the module ..i have try http://drupal.org/project/smart_paging module but its not working well with the url rewrite

  3. i try and put the code to my template.php of my omega subtheme
    this brings me this error
    Fatal error: Cannot redeclare theme_pager_link() (previously declared in ./includes/pager.inc:594) in ./sites/all/themes/spar/template.php on line 80

Greets from Germany
Prepaid Tarifvergleich

robots.txt

Posted by emreque on April 25, 2013 at 5:29pm

I d also suggest you edit robots.txt in order for google to skip the pagination. That s sort of double link to the same node.

Example?

Posted by satter9 on April 25, 2013 at 5:35pm

By any chance do you have an example of the syntax to use in the robots.txt file to do this?

Here:

Posted by emreque on April 26, 2013 at 12:34pm

This should do the job:

Disallow all URL variables except for page

Disallow: /?
Allow: /
?page=
Disallow: /?page=&*
Disallow: /?page=0

Search Engine Optimization (SEO)

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /