2013-08-02 27 views
0

結尾的網址我使用joomla 2.5和k2作爲內容管理器。我最終有1745個URL,其中包括&print=1,我想阻止它們全部使用robot.txt進行索引。 exp:http://tounes24.com/a-propos.html?tmpl=component&print=1。我應該重複這1745次:如何封鎖以?print

User-agent: * 
Disallow: http://tounes24.com/a-propos.html?tmpl=component&print=1 

該怎麼辦?

回答

0

您可以在robot.txt中使用通配符。這應該工作 -

Disallow: /*print=1 
+0

謝謝你的幫助 –