Disallowing google for a single url and its parameters in robots.txt

StackOverflow https://stackoverflow.com/questions/20467440

  •  30-08-2022
  •  | 
  •  

سؤال

i would like to disallow any urls starting with index.php except the following urls.

http://www.medikalyasam.com/index.php?do=catalog/start
http://www.medikalyasam.com/index.php?do=catalog/rebateProducts
http://www.medikalyasam.com/index.php?do=catalog/newProducts

Is this possible ? Thanks

هل كانت مفيدة؟

المحلول

Explicitly allow: the above urls at the top, then disallow: */index.php.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top