Edgewall Software

Ticket #5584 (closed task: invalid)

Opened 19 months ago

Last modified 10 months ago

how to apply robots.txt?

Reported by: gsmdib@… Owned by: jonas
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords:
Cc:

Description

This is probably not solely related to trac, but still, could you please advise how to make robots.txt available for a trac instance? Thanks.

Attachments

Change History

  Changed 19 months ago by nkantrowitz

How are you running the Trac? If via Apache or Lighty, use their normal methods for serving files. If you are using tracd, you can look at the RobotsTxt plugin.

  Changed 19 months ago by gsmdib@…

Via apache. Could you please advise how to implement the 'normal method'? TIA.

  Changed 16 months ago by sid

  • status changed from new to closed
  • resolution set to invalid

Doing a simple web search will provide a lot of documentation how to do this. example search query for 'apache robots.txt

This is not a Trac issue.

  Changed 14 months ago by anonymous

When hosting trac with apache and mod_python you have to explicitly unset any Python handlers for the robots.txt file:

<Location "/robots.txt">
    SetHandler None
</Location>

follow-up: ↓ 6   Changed 11 months ago by anonymous

Also sone that you have to put that entry (Location "/robots.txt"...) *after* the Python handler, otherwise it won't help.

in reply to: ↑ 5   Changed 10 months ago by anonymous

I put the robots.txt file in the htdocs/ directory. Trac 0.10.4 can find it there.

Add/Change #5584 (how to apply robots.txt?)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.