SORT
 
seo
 
choose-seo-keywords
 
magento-memcache
 
clear-magento-cache
 
umbraco-installation-instructions
 
wordpress-shipping
 
remote-desktop-connection
 
umbraco-multi-domain
Ruby on Rails
Most Recent
 
Read More
July 3, 2016

How to Setup a Multi Environment Robots.txt file in Ruby on Rails

Almost every web developer I know at some point or another has forgot to block search engines and had a test site rank in Google. Well here is a quick way to set it up once and it is configured correctly the Robots.txt file in Ruby on Rails for development, testing and production.

1. In a common controller such as Pages Controller or Home Controller create an action called robots with the following content: [crayon-5b041eb7e12ce790930498/] 2. Create your robots.txt files based on environment. Put each one of these in the config/ [...]

208