Skip to content

Instantly share code, notes, and snippets.

@jdjkelly
Created March 16, 2012 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jdjkelly/2050551 to your computer and use it in GitHub Desktop.
Save jdjkelly/2050551 to your computer and use it in GitHub Desktop.
301 Mania
Find.find('bouclair') do |f|
if f.match(/\.html\Z/)
file = File.open(f, "w")
file.puts('<html><head><meta http-equiv="Refresh" content="0; url=http://www.bouclair.com/" /></head><body><p>Our site has changed! Please follow <a href="http://www.bouclair.com/">this link</a>.</p></body></html>')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment