**This Script is for Checking The URi for 301 Redirect status COde And bring back the redirected URI and The Status of it ** how to use
put your links in urls.txt
Example :
http://domain.com/Redireted-URI
http://domain.com/Redireted-URI2
run the script via ruby 301.rb
watch your result on the fly
Update
Log The Result of Checking the redirected URL and new result of it in csv file also logging 404 response without code break