Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robots.txt? #60

Open
prefork opened this issue Oct 12, 2010 · 1 comment
Open

Robots.txt? #60

prefork opened this issue Oct 12, 2010 · 1 comment

Comments

@prefork
Copy link

prefork commented Oct 12, 2010

Is there a way to specify a robots.txt file?

@daviding
Copy link

Just put a robots.txt in your /public and map a static rack URL in your config.ru file, i.e:

config.ru
Line 5: use Rack::Static, :urls => ['/css', '/js', '/images', '/favicon.ico', '/robots.txt'], :root => 'public'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants