Skip to content

Instantly share code, notes, and snippets.

@zdravkok
Created January 27, 2014 10:09
Show Gist options
  • Save zdravkok/8646113 to your computer and use it in GitHub Desktop.
Save zdravkok/8646113 to your computer and use it in GitHub Desktop.
swap between two robots.txt files depending on HTTP Protocol port
RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^robots\.txt$ robots_ssl.txt [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment