Uncategorized

You can use the following URL Rewrite rules to redirect everything but a robots.txt file from one domain to another. 

Requirements

  • IIS 7.0 or greater
  • URL Rewrite 2.0

Explanation: There are actually three rules here and they are listed as follows:

  • Robots.txt file rewrite – this rule says to do nothing when a request come through for domain.com/robots.txt
  • Non-www – this rule redirects anything non-www.groffskiii.com to groffbox.com
  • www – this rule redirects anything www.groffskiii.com to groffbox.com

Screenshot of Rules

URL_rewrite_robots.txt

Rules in text format