WebFaction
Community site: login faq

I would like to serve /robots.txt without a redirect to /robots.txt/.

I tried to create an application and serve it as a static file but the redirect still exists.

I would appreciate your help.

asked 04 Mar, 11:46

raratiru's gravatar image

raratiru
295
accept rate: 0%


If you used our installer then one way is by adding the following two lines at your /home/username/webapps/django_app/apache2/conf/httpd.conf file:

LoadModule alias_module      modules/mod_alias.so
Alias /robots.txt /absolute/path/to/your/robots.txt

You will need to restart your apache stack, using the /home/username/webapps/django_app/apache2/bin/restart command, for changes to take effect.

permanent link

answered 04 Mar, 12:24

iliasr's gravatar image

iliasr ♦♦
1.6k4
accept rate: 36%

edited 04 Mar, 12:26

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×877
×5

question asked: 04 Mar, 11:46

question was seen: 337 times

last updated: 04 Mar, 12:26

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM