2016-07-12 11 views

Antwort

1

Sie können das Allow Schlüsselwort, es zu erreichen:

User-agent: * 
Allow: /10* 
Disallow: /10$ 

Ergebnisse von http://tools.seobook.com/robots-txt/analyzer/:

Url: /10 
Multiple robot rules found 
Robots disallowed: All robots 

Url: /101 
Robots allowed: All robots 

Url: /102 
Robots allowed: All robots 

Url: /103 
Robots allowed: All robots 

jedoch ältere Roboter es richtig interpretieren kann. Zum Beispiel nur die erste Zeile lesen.

+1

einfach Disallow:/10 $ funktioniert gut :) keine Notwendigkeit für:/10 * –

+0

Guter Punkt. Es ist nur für den allgemeinen Fall. Es kann zum Beispiel 'Disallow: /' davor sein. –